Click or drag to resize
Akka.NETFlowOperations.KeepAlive<TIn, 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

Parameters

flow
Type: Akka.Streams.Dsl.Flow<TIn, TOut, TMat>
TBD
timeout
Type: System.TimeSpan
TBD
injectElement
Type: System.Func<TInjected>
TBD

Type Parameters

TIn
TBD
TOut
TBD
TInjected
TBD
TMat
TBD

Return Value

Type: Flow<TIn, TInjected, TMat>
TBD

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Flow<TIn, 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