public static StartBackgroundTask ( IEnumerator update, Action onEnd = null ) : void | ||
update | IEnumerator | |
onEnd | Action | |
return | void |
/// <summary> /// Request the JSON from the web using the initialized uri. /// </summary> /// <param name="timeout">Timeout for the web request, which returns AsyncStatus of Timeout.</param> /// <returns>An AsyncOp. Query this for the status of the operation and for its results.</returns> public AsyncOp <T> GetJSON(int timeout) { this.outstandingOp = new AsyncOp <T>(); EditorCoroutineUtility.StartBackgroundTask(this.Post(requester, timeout)); return(this.outstandingOp); }
public void UpdateLanguages(bool useStagingLink = false) { EditorCoroutineUtility.StartBackgroundTask(this.UpdateLanguagesAsync(useStagingLink), this.HandleUpdateComplete); }