 | TestKitBaseCreateTestLatch Method |
Creates a Countdown latch wrapper for use in testing.
It uses a timeout when waiting and timeouts are specified as durations.
There's a default timeout of 5 seconds and the default count is 1.
Timeouts will always throw an exception.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic virtual TestLatch CreateTestLatch(
int count = 1
)
abstract CreateTestLatch :
?count : int
(* Defaults:
let _count = defaultArg count 1
*)
-> TestLatch
override CreateTestLatch :
?count : int
(* Defaults:
let _count = defaultArg count 1
*)
-> TestLatch
Parameters
- count (Optional)
- Type: SystemInt32
Optional. The count. Default: 1
Return Value
Type:
TestLatchA new
TestLatch
See Also