Include parallelism in mapAsyncUnordered docs #21556
This commit is contained in:
parent
6fea2f3526
commit
0f71b841b5
5 changed files with 34 additions and 30 deletions
|
|
@ -171,8 +171,9 @@ class SubSource[+Out, +Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Source
|
|||
/**
|
||||
* Transform this stream by applying the given function to each of the elements
|
||||
* as they pass through this processing step. The function returns a `CompletionStage` and the
|
||||
* value of that future will be emitted downstream. As many CompletionStages as requested elements by
|
||||
* downstream may run in parallel and may complete in any order, but the elements that
|
||||
* value of that future will be emitted downstream. The number of CompletionStages
|
||||
* that shall run in parallel is given as the first argument to ``mapAsync``.
|
||||
* These CompletionStages may complete in any order, but the elements that
|
||||
* are emitted downstream are in the same order as received from upstream.
|
||||
*
|
||||
* If the function `f` throws an exception or if the `CompletionStage` is completed
|
||||
|
|
@ -202,10 +203,10 @@ class SubSource[+Out, +Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Source
|
|||
/**
|
||||
* Transform this stream by applying the given function to each of the elements
|
||||
* as they pass through this processing step. The function returns a `CompletionStage` and the
|
||||
* value of that future will be emitted downstream. As many CompletionStages as requested elements by
|
||||
* downstream may run in parallel and each processed element will be emitted downstream
|
||||
* as soon as it is ready, i.e. it is possible that the elements are not emitted downstream
|
||||
* in the same order as received from upstream.
|
||||
* value of that future will be emitted downstream. The number of CompletionStages
|
||||
* that shall run in parallel is given as the first argument to ``mapAsyncUnordered``.
|
||||
* Each processed element will be emitted downstream as soon as it is ready, i.e. it is possible
|
||||
* that the elements are not emitted downstream in the same order as received from upstream.
|
||||
*
|
||||
* If the function `f` throws an exception or if the `CompletionStage` is completed
|
||||
* with failure and the supervision decision is [[akka.stream.Supervision#stop]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue