Replace LazyFlow with FutureFlow (#28729)

And implement other lazy flows on top of it

Co-Authored-By: Johannes Rudolph <johannes.rudolph@gmail.com>
This commit is contained in:
eyal farago 2020-05-14 11:28:53 +03:00 committed by GitHub
parent 9a1d5191b9
commit de59bb6803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1435 additions and 739 deletions

View file

@ -36,5 +36,9 @@ Scala
**completes** when upstream completes and all futures have been completed and all elements have been emitted
**cancels** when downstream cancels (keep reading)
The operator's default behaviour in case of downstream cancellation before nested flow materialization (future completion) is to cancel immediately.
This behaviour can be controlled by setting the [[akka.stream.Attributes.NestedMaterializationCancellationPolicy.PropagateToNested]] attribute,
this will delay downstream cancellation until nested flow's materialization which is then immediately cancelled (with the original cancellation cause).
@@@

View file

@ -29,5 +29,9 @@ and failed with a `akka.stream.NeverMaterializedException` if the stream fails o
**completes** when upstream completes and all futures have been completed and all elements have been emitted
**cancels** when downstream cancels (keep reading)
The operator's default behaviour in case of downstream cancellation before nested flow materialization (future completion) is to cancel immediately.
This behaviour can be controlled by setting the [[akka.stream.Attributes.NestedMaterializationCancellationPolicy.PropagateToNested]] attribute,
this will delay downstream cancellation until nested flow's materialization which is then immediately cancelled (with the original cancellation cause).
@@@

View file

@ -35,5 +35,9 @@ See @ref:[lazyFlow](lazyFlow.md) for sample.
**completes** when upstream completes and all futures have been completed and all elements have been emitted
**cancels** when downstream cancels (keep reading)
The operator's default behaviour in case of downstream cancellation before nested flow materialization (future completion) is to cancel immediately.
This behaviour can be controlled by setting the [[akka.stream.Attributes.NestedMaterializationCancellationPolicy.PropagateToNested]] attribute,
this will delay downstream cancellation until nested flow's materialization which is then immediately cancelled (with the original cancellation cause).
@@@

View file

@ -26,5 +26,9 @@ Defers creation until a first element arrives.
**completes** when upstream completes and all futures have been completed and all elements have been emitted
**cancels** when downstream cancels (keep reading)
The operator's default behaviour in case of downstream cancellation before nested flow materialization (future completion) is to cancel immediately.
This behaviour can be controlled by setting the [[akka.stream.Attributes.NestedMaterializationCancellationPolicy.PropagateToNested]] attribute,
this will delay downstream cancellation until nested flow's materialization which is then immediately cancelled (with the original cancellation cause).
@@@