示例#1
0
 public void TryCopyStateFrom(IStatefulScheduler other)
 {
     if (other is PeriodicalScheduler periodical && periodical.scheduledFirst)
     {
         scheduledFirst.TrySetTrue();
     }
 }
 public void TryCopyStateFrom(IStatefulScheduler other)
 {
     if (other is PeriodicalWithConstantPauseScheduler periodical)
     {
         scheduledFirst.Value = periodical.scheduledFirst.Value;
         lastIterationEnd     = periodical.lastIterationEnd;
     }
 }