/// <summary> /// 出列任务 /// </summary> public void DequeueTask() { for (int i = 0; i < queuedTaskList.Count; i++) { QueuedTask <T> queuedTask = queuedTaskList[i]; T task = queuedTask.DequeueTask(); if (task != null && !taskList.Contains(task)) { AddTask(task); queuedTaskList.RemoveAt(i); i--; } } }
public void DequeueTask() { for (int i = 0; i < queuedTaskList.Count; i++) { QueuedTask <T> queuedTask = queuedTaskList[i]; T task = queuedTask.DequeueTask(); if (task != null) { AddTask(task); queuedTaskList.RemoveAt(i); i--; CMDebug.TextPopupMouse("Task Dequeue"); } } }