clarify watchCompletion only watches the stage, not the stream (#26224)

* clarify watchCompletion only watches the stage, not the stream

* stage->operator
This commit is contained in:
Arnout Engelen 2019-01-13 18:23:15 +01:00 committed by Patrik Nordwall
parent eaca6de25f
commit 5664f4ae88
5 changed files with 27 additions and 11 deletions

View file

@ -399,7 +399,7 @@ object Source {
* call when buffer is full.
*
* You can watch accessibility of stream with [[akka.stream.javadsl.SourceQueue.watchCompletion]].
* It returns future that completes with success when stream is completed or fail when stream is failed.
* It returns a future that completes with success when this operator is completed or fails when stream is failed.
*
* The buffer can be disabled by using `bufferSize` of 0 and then received message will wait
* for downstream demand unless there is another message waiting for downstream demand, in that case