TestLatch

org.apache.pekko.testkit.TestLatch$
See theTestLatch companion class
object TestLatch

A count down latch wrapper for use in testing. It always 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 (no need to wrap in assert in tests). Timeouts are multiplied by the testing time factor for Jenkins builds.

Attributes

Companion
class
Source
TestLatch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TestLatch.type

Members list

Value members

Concrete methods

def apply(count: Int)(implicit system: ActorSystem): TestLatch

Attributes

Source
TestLatch.scala

Concrete fields