| TestKitBaseAwaitConditionNoThrow Method |
Await until the given condition evaluates to true or the timeout
expires, whichever comes first. Returns true if the condition was fulfilled.
The parameter interval specifies the time between calls to conditionIsFulfilled
Between calls the thread sleeps. If interval is not specified or null 100 ms is used.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public bool AwaitConditionNoThrow(
Func<bool> conditionIsFulfilled,
TimeSpan max,
Nullable<TimeSpan> interval = null
)
member AwaitConditionNoThrow :
conditionIsFulfilled : Func<bool> *
max : TimeSpan *
?interval : Nullable<TimeSpan>
(* Defaults:
let _interval = defaultArg interval null
*)
-> bool
Parameters
- conditionIsFulfilled
- Type: SystemFuncBoolean
The condition that must be fulfilled within the duration. - max
- Type: SystemTimeSpan
The maximum duration. - interval (Optional)
- Type: SystemNullableTimeSpan
Optional. The time between calls to conditionIsFulfilled to check
if the condition is fulfilled. Between calls the thread sleeps. If undefined, 100 ms is used
Return Value
Type:
BooleanTBD
See Also