Flow.lazyInitAsync

lazyInitAsync has been deprecated in 2.6.0 use Flow.lazyFutureFlow in combination with prefixAndTail instead.

Simple operators

Signature

def lazyInitAsync[I, O, M](flowFactory: () => Future[Flow[I, O, M]]): Flow[I, O, Future[Option[M]]]

Description

fromCompletionStage has been deprecated in 2.6.0 use lazyFutureFlow in combination with prefixAndTail instead.

Defers creation until a first element arrives.

Reactive Streams semantics

emits when the internal flow is successfully created and it emits

backpressures when the internal flow is successfully created and it backpressures

completes when upstream completes and all elements have been emitted from the internal flow

completes when upstream completes and all futures have been completed and all elements have been emitted

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.