+doc add missing java documentation for scanAsync/foldAsync (#21701)

* +doc add missing java documentation for scanAsync/foldAsync

=doc fix formatting in stages overview (scanAsync/foldAsync)

* Future => CompletionStage
This commit is contained in:
Konrad Malawski 2016-10-24 13:31:47 +02:00 committed by GitHub
parent f49dc3eae8
commit 46f7eef3d9
2 changed files with 22 additions and 2 deletions

View file

@ -647,6 +647,16 @@ the second element is required from downstream.
**completes** when upstream completes
scanAsync
^^^^^^^^^
Just like ``scan`` but receiving a function that results in a ``CompletionStage`` to the next value.
**emits** when the ``CompletionStage`` resulting from the function scanning the element resolves to the next value
**backpressures** when downstream backpressures
**completes** when upstream completes and the last ``CompletionStage`` is resolved
fold
^^^^
Start with current value ``zero`` and then apply the current and next value to the given function, when upstream
@ -658,6 +668,16 @@ complete the current value is emitted downstream.
**completes** when upstream completes
foldAsync
^^^^^^^^^
Just like ``fold`` but receiving a function that results in a ``CompletionStage`` to the next value.
**emits** when upstream completes and the last ``CompletionStage`` is resolved
**backpressures** when downstream backpressures
**completes** when upstream completes and the last ``CompletionStage`` is resolved
reduce
^^^^^^
Start with first element and then apply the current and next value to the given function, when upstream