FSharp.Control.AsyncSeq icon indicating copy to clipboard operation
FSharp.Control.AsyncSeq copied to clipboard

[Question] AsyncSeq.MapAsyncParallel

Open Xyncgas opened this issue 3 years ago • 2 comments

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 avatar Nov 11 '22 01:11 Xyncgas

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 avatar Nov 18 '22 07:11 Xyncgas

@dsyme

Xyncgas avatar Nov 19 '22 07:11 Xyncgas