You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
707 B
30 lines
707 B
using System; |
|
|
|
namespace UniRx |
|
{ |
|
public interface IScheduler |
|
{ |
|
DateTimeOffset Now { get; } |
|
|
|
// Interface is changed from official Rx for avoid iOS AOT problem (state is dangerous). |
|
|
|
IDisposable Schedule(Action action); |
|
|
|
IDisposable Schedule(TimeSpan dueTime, Action action); |
|
} |
|
|
|
public interface ISchedulerPeriodic |
|
{ |
|
IDisposable SchedulePeriodic(TimeSpan period, Action action); |
|
} |
|
|
|
public interface ISchedulerLongRunning |
|
{ |
|
IDisposable ScheduleLongRunning(Action<ICancelable> action); |
|
} |
|
|
|
public interface ISchedulerQueueing |
|
{ |
|
void ScheduleQueueing<T>(ICancelable cancel, T state, Action<T> action); |
|
} |
|
} |