Click or drag to resize
Akka.NETTestKitBase.AwaitCondition Method (Func<Boolean>)

Await until the given condition evaluates to true or until a timeout

The timeout is taken from the innermost enclosing `within` block (if inside a `within` block) or the value specified in config value "akka.test.single-expect-default". The value is dilated, i.e. scaled by the factor specified in config value "akka.test.timefactor"..

A call to conditionIsFulfilled is done immediately, then the threads sleep for about a tenth of the timeout value, before it checks the condition again. This is repeated until timeout or the condition evaluates to true. To specify another interval, use the overload AwaitCondition(Func<Boolean>, Nullable<TimeSpan>, Nullable<TimeSpan>, String)

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public void AwaitCondition(
	Func<bool> conditionIsFulfilled
)

Parameters

conditionIsFulfilled
Type: System.Func<Boolean>
The condition that must be fulfilled within the duration.
See Also