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

[Question] AsyncSeq.MapAsyncParallel #160

Open
Xyncgas opened this issue Nov 11, 2022 · 2 comments
Open

[Question] AsyncSeq.MapAsyncParallel #160

Xyncgas opened this issue Nov 11, 2022 · 2 comments

Comments

@Xyncgas
Copy link

Xyncgas commented Nov 11, 2022

I read the sequence that's returned by this function, do I get to read the first element when all elements are finished on mapping, or I can start reading the first element as soon as it's mapped even though there's more elements coming into the AsyncSequence to be processed

@Xyncgas
Copy link
Author

Xyncgas commented Nov 18, 2022

For example, if I do

MySeq |> AsyncSeq.MapAsyncParallel (fun x -> some operation) |> AsyncSeq.tryFirst

Do I get the first element as soon as some element is mapped or do I have to wait for all elements mapped

@Xyncgas
Copy link
Author

Xyncgas commented Nov 19, 2022

@dsyme

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

No branches or pull requests

1 participant