Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AsyncSeq.mapAsyncUnorderedParallel #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xyncgas
Copy link

@Xyncgas Xyncgas commented Oct 14, 2022

I implemented mapAsyncUnorderedParallel
Can someone please help me to add it into the AsyncSeq library we are using

@Xyncgas
Copy link
Author

Xyncgas commented Oct 14, 2022

My first contribution

@Xyncgas
Copy link
Author

Xyncgas commented Oct 14, 2022

#155

@Xyncgas Xyncgas changed the title Implemented mapAsyncUnorderedParallel Add AsyncSeq.mapAsyncUnorderedParallel Oct 14, 2022
@@ -0,0 +1,24 @@
using System.Threading.Channels;
namespace Helper
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why this helper can't be written in F#?

let inline (|AbsPosRangeByLength|_|) (start,length) = if start >= GenericZero && length > GenericZero then Some (start,length) else None
let inline private AsyncSequenceProduce (dataChannel:Channel<'a>) producer source =
async{
let Mutex = new Mutex();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsyme
Copy link
Contributor

dsyme commented Oct 27, 2022

@Xyncgas I left some initial comments - we'd need tests too. Any reason this doesn't go direct into the main library?

@Xyncgas
Copy link
Author

Xyncgas commented Oct 27, 2022

@Xyncgas I left some initial comments - we'd need tests too. Any reason this doesn't go direct into the main library?

I didn't want to put stuff into the folder but created a separate one because I didn't know what to do

@dsyme
Copy link
Contributor

dsyme commented Aug 21, 2024

@abelbraaksma Should we close this old one out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants