static SimpleCoroutineAwaiter GetAwaiterReturnVoid(object instruction) { var awaiter = new SimpleCoroutineAwaiter(); RunOnUnityScheduler(() => AsyncCoroutineRunner.Instance.StartCoroutine(InstructionWrappers.ReturnVoid(awaiter, instruction))); return(awaiter); }
private static SimpleCoroutineAwaiter GetAwaiterReturnVoid(object instruction) { var awaiter = new SimpleCoroutineAwaiter(); var enumerator = InstructionWrappers.ReturnVoid(awaiter, instruction); RunOnUnityScheduler(() => RunCoroutine(enumerator)); return(awaiter); }