Unity3dAsyncAwaitUtil
Unity3dAsyncAwaitUtil copied to clipboard
Added GetAwaiter extension for UnityEngine.Coroutine objects
This PR enables awaiting on a coroutine object that has been created previously.
Example:
// start a coroutine
Coroutine coroutine = StartCoroutine(MyCoroutine());
// do things while the coroutine is running.
// ...
// now waits for the coroutine to complete.
await coroutine;
@svermeulen what do you think?
good!