A static class in Root.Township, the global namespace.
Extension methods that let async code await a coroutine run through AltaCoroutine.
Methods
| Member | What it is |
|---|
static async Task WaitForCoroutineAsync(IEnumerator coroutine, MonoBehaviour target = null) | Starts the coroutine and finishes when it does. The generic overload then returns getResult(). |
static async Task<T> WaitForCoroutineAsync<T>(IEnumerator coroutine, Func<T> getResult, MonoBehaviour target = null) | Starts the coroutine and finishes when it does. The generic overload then returns getResult(). |
1 private and internal method
| Member | What it is |
|---|
private static IEnumerator RunCoroutine(IEnumerator coroutine, TaskCompletionSource<bool> completion) (iterator) | Wrapper coroutine that runs the given one and completes the task. |