//misk-testing/misk.concurrent
Package-level declarations¶
Types¶
| Name | Summary |
|---|---|
| FakeScheduledExecutorService | [jvm] @Singleton class FakeScheduledExecutorService@Injectconstructor(clock: Clock) : ScheduledExecutorService, ExecutorService ScheduledExecutorService for testing that runs in the current thread and is triggered using the tick() method. An injected Clock is used to decide whether to execute a scheduled task. |
| FakeSleeper | [jvm] @Singleton class FakeSleeper@Injectconstructor(clock: Clock) : FakeFixture, Sleeper Sleeper for testing that blocks threads calling sleep, and checks whether the threads should wake using the tick() method. An injected Clock is used to decide whether to wake a thread. |
| FakeSleeperModule | [jvm] class FakeSleeperModule : KAbstractModule |
| FakeTicker | [jvm] @Singleton class FakeTicker@Injectconstructor : Ticker, Sleeper, TestFixture |