public static PriorityTask <T> Schedule <T>(Func <T> action, PriorityClass priorityClass, int priority) { var t = new PriorityTask <T>(action, priorityClass, priority); Instance.QueueTask(t); return(t); }
public static PriorityTask Schedule(Action action, PriorityClass priorityClass, int priority) { var t = new PriorityTask(action, priorityClass, priority); Instance.QueueTask(t); return(t); }