Merge pull request #22360 from johanandren/wip-21363-future-source-last-bit-johanandren

Source that flattens a future source and keeps mat val
This commit is contained in:
Patrik Nordwall 2017-03-16 20:36:05 +01:00 committed by GitHub
commit c3c058b6bb
11 changed files with 385 additions and 15 deletions

View file

@ -76,7 +76,6 @@ If the ``CompletionStage`` fails the stream is failed with that exception.
**completes** after the ``CompletionStage`` has completed or when it fails
fromFuture
^^^^^^^^^^
Send the single value of the Scala ``Future`` when it completes and there is demand.
@ -86,6 +85,24 @@ If the future fails the stream is failed with that exception.
**completes** after the future has completed
fromFutureSource
^^^^^^^^^^^^^^^^
Streams the elements of the given future source once it successfully completes.
If the future fails the stream is failed.
**emits** the next value from the `future` source, once it has completed
**completes** after the `future` source completes
fromSourceCompletionStage
^^^^^^^^^^^^^^^^^^^^^^^^^
Streams the elements of an asynchronous source once its given `completion` stage completes.
If the `completion` fails the stream is failed with that exception.
**emits** the next value from the asynchronous source, once its `completion stage` has completed
**completes** after the asynchronous source completes
unfold
^^^^^^
Stream the result of a function as long as it returns a ``Optional``, the value inside the optional