Click or drag to resize
Akka.NETTestKitBaseAwaitConditionNoThrow 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.42 (1.2.3.42)
Syntax
public bool AwaitConditionNoThrow(
	Func<bool> conditionIsFulfilled,
	TimeSpan max,
	Nullable<TimeSpan> interval = null
)

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: Boolean
TBD
See Also