Merge pull request #20064 from johanandren/wip-20051-parallellism-docs-async-johanandren
=doc #20051 Parallellism docs updated for async and fusing
This commit is contained in:
commit
3698928fbd
8 changed files with 47 additions and 30 deletions
|
|
@ -204,6 +204,8 @@ The graph consists of a ``Balance`` node which is a special fan-out operation th
|
|||
downstream consumers. In a ``for`` loop we wire all of our desired workers as outputs of this balancer element, then
|
||||
we wire the outputs of these workers to a ``Merge`` element that will collect the results from the workers.
|
||||
|
||||
To make the worker stages run in parallel we mark them as asynchronous with `async()`.
|
||||
|
||||
.. includecode:: ../code/docs/stream/javadsl/cookbook/RecipeWorkerPool.java#worker-pool
|
||||
|
||||
.. includecode:: ../code/docs/stream/javadsl/cookbook/RecipeWorkerPool.java#worker-pool2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue