| TestKitBaseFishForMessageT Method (PredicateT, NullableTimeSpan, String) |
Receives messages until isMessage returns true.
Use it to ignore certain messages while waiting for a specific message.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public T FishForMessage<T>(
Predicate<T> isMessage,
Nullable<TimeSpan> max = null,
string hint = ""
)
member FishForMessage :
isMessage : Predicate<'T> *
?max : Nullable<TimeSpan> *
?hint : string
(* Defaults:
let _max = defaultArg max null
let _hint = defaultArg hint ""
*)
-> 'T
Parameters
- isMessage
- Type: SystemPredicateT
The is message. - max (Optional)
- Type: SystemNullableTimeSpan
The maximum. - hint (Optional)
- Type: SystemString
The hint.
Type Parameters
- T
- The type of the expected message. Messages of other types are ignored.
Return Value
Type:
TReturns the message that
isMessage matched
See Also