Class AsyncOperationExtensions
- Namespace
- TAsset
Bundle .Extensions
- Assembly
- TAssetBundle.Extensions.dll
Static class providing extension methods for Async
- Inheritance
-
Async
Operation Extensions
- Inherited Members
Methods
ToTask(AsyncOperation)
Converts the Async
Parameters
asyncOperation
AsyncOperation The asynchronous operation to await.
Returns
- Task
A Task that completes when the operation is done.
ToTask<T>(AsyncOperation<T>)
Converts the AsyncOperation<T> to a Task and awaits until the operation is complete, returning the result.
Parameters
asyncOperation
AsyncOperation <T>The asynchronous operation to await.
Returns
- Task<T>
A Task that completes when the operation is done and returns the result.
Type Parameters
T
The result type of the operation.