public IDisposable SchedulePeriodic(TimeSpan period, Action action) { var d = new BooleanDisposable(); var time = Scheduler.Normalize(period); MainThreadDispatcher.StartEndOfFrameMicroCoroutine(PeriodicAction(time, action, d)); return(d); }
public IDisposable Schedule(TimeSpan dueTime, Action action) { var d = new BooleanDisposable(); var time = Scheduler.Normalize(dueTime); MainThreadDispatcher.StartEndOfFrameMicroCoroutine(DelayAction(time, action, d)); return(d); }
public void ScheduleQueueing <T>(ICancelable cancel, T state, Action <T> action) { MainThreadDispatcher.StartEndOfFrameMicroCoroutine(ImmediateAction(state, action, cancel)); }