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

Parameters

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

Type Parameters

TOut
TBD
TInjected
TBD
TMat
TBD

Return Value

Type: SourceTInjected, TMat
TBD

Usage Note

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