Hello,
I’m wondering why SourceWithContext
don’t support mapAsyncUnordered
: would it be hard to add as it already support mapAsync?
At first glance it looks that under the hood it would just get context element before executing desired function and then map result to add context element, pseudocode:
(streamElement, context)(asyncFunction) => asyncFunction.apply(streamElement).map((_, context))
It would be really helpful as automatic context propagation reduce boilerplate a lot and not everywhere ordered async processing is required.
Thanks for any response in advance!
Regards
1 post - 1 participant