Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1368

Lack of mapAsyncUnordered for SourceWithContext

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 1368

Trending Articles