Stream supervision doc clarification #23376

This commit is contained in:
Johan Andrén 2017-07-26 16:23:46 +02:00 committed by GitHub
parent 8eabc685dc
commit 407131cb4e
34 changed files with 509 additions and 193 deletions

View file

@ -271,6 +271,8 @@ object Sink {
* try to create sink with next element
*
* `fallback` will be executed when there was no elements and completed is received from upstream.
*
* Adheres to the [[ActorAttributes.SupervisionStrategy]] attribute.
*/
def lazyInit[T, M](sinkFactory: function.Function[T, CompletionStage[Sink[T, M]]], fallback: function.Creator[M]): Sink[T, CompletionStage[M]] =
new Sink(scaladsl.Sink.lazyInit[T, M](