/// <summary> Enqueue a web request to the task list. This task will be executed as soon as possible. </summary> public static Task EnqueueTask(string uri, string data, Task.Type type, Callback.Simple resultProcessor) { if (type == Task.Type.Download) { Debug.LogError("Download tasks start automatically, there is no need to put them in the queue."); return(null); } Task task = new Task(uri, data, resultProcessor, type); tasks.Enqueue(task); if (!receiveUpdates) { EditorApplication.update += Update; receiveUpdates = true; } return(task); }
/// <summary> Enqueue a web request to the task list. This task will be executed as soon as possible. </summary> public static Task EnqueueTask(string uri, Task.Type type, Callback.Simple resultProcessor) { return(EnqueueTask(uri, "", type, resultProcessor)); }
public Task(Task.Type type, ArrayList paramaters) { this._status = Status.Wait; this._type = type; this.paramaters = paramaters; }