Click or drag to resize
Akka.NETSourceOperationsGroupedWithinTOut, TMat Method
Chunk up this stream into groups of elements received within a time window, or limited by the given number of elements, whatever happens first. Empty groups will not be emitted if no elements are received from upstream. The last group before end-of-stream will contain the buffered elements since the previously emitted group. n must be positive, and timeout must be greater than 0 seconds, otherwise ArgumentException is thrown.

Emits when the configured time elapses since the last group has been emitted

Backpressures when the configured time elapses since the last group has been emitted

Completes when upstream completes (emits last group)

Cancels when downstream completes

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static Source<IEnumerable<TOut>, TMat> GroupedWithin<TOut, TMat>(
	this Source<TOut, TMat> flow,
	int n,
	TimeSpan timeout
)

Parameters

flow
Type: Akka.Streams.DslSourceTOut, TMat
TBD
n
Type: SystemInt32
TBD
timeout
Type: SystemTimeSpan
TBD

Type Parameters

TOut
TBD
TMat
TBD

Return Value

Type: SourceIEnumerableTOut, 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).
Exceptions
ExceptionCondition
ArgumentExceptionThrown if n is less than or equal zero or timeout is Zero.
See Also