Clarify what to do instead of sending a PoisonPill for ActorRef source (#27090)

* Clarify what to do instead of sending poison pill to actor ref source

* Fix typos in scala/java doc for Source.actorRef
This commit is contained in:
Christopher Batey 2019-06-07 08:46:34 +01:00 committed by Arnout Engelen
parent 508aa9970f
commit 6d7ad47571
3 changed files with 6 additions and 5 deletions

View file

@ -319,9 +319,9 @@ object Source {
* completion.
*
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immidiately,
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immediately,
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
* already buffered elements will be signaled before siganling completion.
* already buffered elements will be signaled before signaling completion.
* Sending [[akka.actor.PoisonPill]] will signal completion immediately but this behavior is deprecated and scheduled to be removed.
*
* The stream can be completed with failure by sending a [[akka.actor.Status.Failure]] to the