You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, in the span of two minutes, I found this issue and read the groupBy documentation which contains the following warning:
Note that the resulting async sequence has to be processed in parallel (e.g AsyncSeq.mapAsyncParallel) becaused completion of sub-sequences depends on completion of other sub-sequences.
Using ... |> AsyncSeq.mapAsyncParallel instead of ... |> AsyncSeq.mapAsync fixes the dead-lock.
I guess this is by design. It would be nice if it could be easier to diagnose, or somehow possible to avoid the issue entirely, though :)
Description
My code deadlocks when working with AsyncSeq pipeline.
Repro steps
Code example:
Expected behavior
No deadlock, or some xml-doc remarks with the warnings of such possibility, if this is by design.
Known workarounds
It looks like I have to eagerly enumerate the sequence, so all groups get resolved
Related information
The text was updated successfully, but these errors were encountered: