Click or drag to resize
Akka.NETAbstractStageTIn, TOutOnPush Method

This method is called when an element from upstream is available and there is demand from downstream, i.e. in OnPush(TIn, IContext) you are allowed to call Push(Object) to emit one element downstreams, or you can absorb the element by calling Pull. Note that you can only emit zero or one element downstream from OnPull(IContext).

To emit more than one element you have to push the remaining elements from OnPull(IContext), one-by-one. OnPush(TIn, IContext) is not called again until OnPull(IContext) has requested more elements with Pull.

Namespace:  Akka.Streams.Stage
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public abstract IDirective OnPush(
	TIn element,
	IContext context
)

Parameters

element
Type: TIn
TBD
context
Type: Akka.Streams.StageIContext
TBD

Return Value

Type: IDirective
TBD
See Also