public static Asynchronous.IAsyncResult RunOnCoroutine(Func <IPromise, IEnumerator> func) { CoroutineResult result = new CoroutineResult(); DoRunOnCoroutine(func(result), result); return(result); }
public static IAsyncResult <TResult> RunOnCoroutine <TResult>(Func <IPromise <TResult>, IEnumerator> func) { CoroutineResult <TResult> result = new CoroutineResult <TResult>(); DoRunOnCoroutine(func(result), result); return(result); }
public static Asynchronous.IAsyncResult RunOnCoroutine(IEnumerator routine) { CoroutineResult result = new CoroutineResult(); DoRunOnCoroutine(routine, result); return(result); }