Class AwaiterExtensions
We could just add a generic GetAwaiter to YieldInstruction and CustomYieldInstruction
but instead we add specific methods to each derived class to allow for return values
that make the most sense for the specific instruction type.
Inheritance
AwaiterExtensions
Assembly: cs.temp.dll.dll
public static class AwaiterExtensions
Methods
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<AssetBundle> GetAwaiter(this AssetBundleCreateRequest instruction)
Parameters
Type |
Name |
Description |
AssetBundleCreateRequest |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<object> GetAwaiter(this AssetBundleRequest instruction)
Parameters
Type |
Name |
Description |
AssetBundleRequest |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<AsyncOperation> GetAwaiter(this AsyncOperation instruction)
Parameters
Type |
Name |
Description |
AsyncOperation |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<object> GetAwaiter(this IEnumerator coroutine)
Parameters
Type |
Name |
Description |
IEnumerator |
coroutine |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitForUpdate instruction)
Parameters
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<object> GetAwaiter(this ResourceRequest instruction)
Parameters
Type |
Name |
Description |
ResourceRequest |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitForEndOfFrame instruction)
Parameters
Type |
Name |
Description |
WaitForEndOfFrame |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitForFixedUpdate instruction)
Parameters
Type |
Name |
Description |
WaitForFixedUpdate |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitForSeconds instruction)
Parameters
Type |
Name |
Description |
WaitForSeconds |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitForSecondsRealtime instruction)
Parameters
Type |
Name |
Description |
WaitForSecondsRealtime |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitUntil instruction)
Parameters
Type |
Name |
Description |
WaitUntil |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter GetAwaiter(this WaitWhile instruction)
Parameters
Type |
Name |
Description |
WaitWhile |
instruction |
|
Returns
Declaration
public static AwaiterExtensions.SimpleCoroutineAwaiter<T> GetAwaiter<T>(this IEnumerator<T> coroutine)
Parameters
Type |
Name |
Description |
IEnumerator<T> |
coroutine |
|
Returns
Type Parameters