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; } }