Exemple #1
0
        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;
        }
Exemple #2
0
 public static Task Schedule(this Task task, TestScheduler scheduler)
 {
     scheduler.Advance();
     return(task);
 }