Class AsyncUtils
Utilities that make it easier to work with async methods in the context of Unity.
public static class AsyncUtils
- Inheritance
-
AsyncUtils
- Inherited Members
Methods
WaitUntilTaskComplete(Task)
Takes an async Task and returns an IEnumerator that only continues when the task
has completed (successfully or unsuccessfully). Can be used to run an async method as part of a
UnityEngine.Coroutine.
public static IEnumerator WaitUntilTaskComplete(Task task)
Parameters
task
Task- The async method to wait for.
Returns
- IEnumerator
- An IEnumerator for use in e.g. a coroutine.