Click or drag to resize
Akka.NETSubFlowOperationsKeepAliveTOut, TInjected, TMat, TClosed 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 SubFlow<TInjected, TMat, TClosed> KeepAlive<TOut, TInjected, TMat, TClosed>(
	this SubFlow<TOut, TMat, TClosed> flow,
	TimeSpan timeout,
	Func<TInjected> injectElement
)
where TOut : TInjected

Parameters

flow
Type: Akka.Streams.DslSubFlowTOut, TMat, TClosed
TBD
timeout
Type: SystemTimeSpan
TBD
injectElement
Type: SystemFuncTInjected
TBD

Type Parameters

TOut
TBD
TInjected
TBD
TMat
TBD
TClosed
TBD

Return Value

Type: SubFlowTInjected, TMat, TClosed
TBD

Usage Note

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