| TestKitBaseReceiveWhileT Method (NullableTimeSpan, NullableTimeSpan, FuncObject, T, Int32) |
Receive a series of messages until the function returns null or the idle
timeout is met 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.129 (1.2.3.129)
Syntax public IReadOnlyList<T> ReceiveWhile<T>(
Nullable<TimeSpan> max,
Nullable<TimeSpan> idle,
Func<Object, T> filter,
int msgs = 2147483647
)
where T : class
member ReceiveWhile :
max : Nullable<TimeSpan> *
idle : Nullable<TimeSpan> *
filter : Func<Object, 'T> *
?msgs : int
(* Defaults:
let _msgs = defaultArg msgs 2147483647
*)
-> IReadOnlyList<'T> when 'T : not struct
Parameters
- max
- Type: SystemNullableTimeSpan
TBD - idle
- Type: SystemNullableTimeSpan
TBD - filter
- Type: SystemFuncObject, T
TBD - msgs (Optional)
- Type: SystemInt32
TBD
Type Parameters
- T
- TBD
Return Value
Type:
IReadOnlyListTTBD
See Also