Click or drag to resize
Akka.NETTestKitBase.ReceiveWhile<T> Method (Nullable<TimeSpan>, Func<Object, T>, Int32)
Receive a series of messages until the function returns null or the overall maximum duration is elapsed or expected messages count is reached. Returns the sequence of messages. Note that it is not an error to hit the `max` duration in this case. The max duration is scaled by Dilated(TimeSpan)

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public IReadOnlyList<T> ReceiveWhile<T>(
	Nullable<TimeSpan> max,
	Func<Object, T> filter,
	int msgs = 2147483647
)
where T : class

Parameters

max
Type: System.Nullable<TimeSpan>
TBD
filter
Type: System.Func<Object, T>
TBD
msgs (Optional)
Type: System.Int32
TBD

Type Parameters

T
TBD

Return Value

Type: IReadOnlyList<T>
TBD
See Also