Click or drag to resize
Akka.NETFlowOperationsKeepAliveTIn, 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.42 (1.2.3.42)
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

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, TMat
TBD

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