 | TestKitBaseFishForMessage Method (PredicateObject, 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.42 (1.2.3.42)
Syntaxpublic Object FishForMessage(
Predicate<Object> isMessage,
Nullable<TimeSpan> max = null,
string hint = ""
)
member FishForMessage :
isMessage : Predicate<Object> *
?max : Nullable<TimeSpan> *
?hint : string
(* Defaults:
let _max = defaultArg max null
let _hint = defaultArg hint ""
*)
-> Object
Parameters
- isMessage
- Type: SystemPredicateObject
The is message. - max (Optional)
- Type: SystemNullableTimeSpan
The maximum. - hint (Optional)
- Type: SystemString
The hint.
Return Value
Type:
ObjectReturns the message that
isMessage matched
See Also