public void StartCoroutine(PausableTask task) { while (task.MoveNext() == true) { ; } }
public void StartCoroutineThreadSafe(PausableTask task) { StartCoroutine(task); }
public TaskRoutine CreateTask(Func<IEnumerator> taskGenerator) { PausableTask ptask = new PausableTask(_runner); return new TaskRoutine(ptask, taskGenerator); }
internal TaskRoutine(PausableTask task) { _task = task; }
internal TaskRoutine(PausableTask task, Func<IEnumerator> taskGenerator) { _task = task; _taskGenerator = taskGenerator; }