コード例 #1
0
        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);
        }
コード例 #2
0
        public static PriorityTask Schedule(Action action, PriorityClass priorityClass, int priority)
        {
            var t = new PriorityTask(action, priorityClass, priority);

            Instance.QueueTask(t);
            return(t);
        }