| FlowOperationsKeepAliveTIn, TOut, TInjected, TMat Method |
Injects additional elements if the upstream does not emit for a configured amount of time. In other words, this
stage attempts to maintains a base rate of emitted elements towards the downstream.
If the downstream backpressures then no element is injected until downstream demand arrives. Injected elements
do not accumulate during this period.
Upstream elements are always preferred over injected elements.
Emits when upstream emits an element or if the upstream was idle for the configured period
Backpressures when downstream backpressures
Completes when upstream completes
Cancels when downstream cancels
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Flow<TIn, TInjected, TMat> KeepAlive<TIn, TOut, TInjected, TMat>(
this Flow<TIn, TOut, TMat> flow,
TimeSpan timeout,
Func<TInjected> injectElement
)
where TOut : TInjected
[<ExtensionAttribute>]
static member KeepAlive :
flow : Flow<'TIn, 'TOut, 'TMat> *
timeout : TimeSpan *
injectElement : Func<'TInjected> -> Flow<'TIn, 'TInjected, 'TMat> when 'TOut : 'TInjected
Parameters
- flow
- Type: Akka.Streams.DslFlowTIn, TOut, TMat
TBD - timeout
- Type: SystemTimeSpan
TBD - injectElement
- Type: SystemFuncTInjected
TBD
Type Parameters
- TIn
- TBD
- TOut
- TBD
- TInjected
- TBD
- TMat
- TBD
Return Value
Type:
FlowTIn,
TInjected,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FlowTIn,
TOut,
TMat. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also