protected async Task FastForward(TimeSpan by) { if (TestScheduler == null) { throw new InvalidOperationException( "akka.scheduler.implementation must be configured to \"Akka.TestKit.TestScheduler, Akka.TestKit\""); } await SystemIdle; TestScheduler.Advance(by); await SystemIdle; }
public static Task Schedule(this Task task, TestScheduler scheduler) { scheduler.Advance(); return(task); }