UnityAsyncExtensions.AsyncOperationAwaiter Struct
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public struct AsyncOperationAwaiter : ICriticalNotifyCompletion, INotifyCompletion
Implements
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion
Members
Constructors
Name | Description |
---|---|
AsyncOperationAwaiter(AsyncOperation) |
Properties
Name | Description |
---|---|
IsCompleted |
Methods
Name | Description |
---|---|
GetResult() | |
OnCompleted(Action) | |
UnsafeOnCompleted(Action) |
Constructors
AsyncOperationAwaiter(AsyncOperation)
public AsyncOperationAwaiter(AsyncOperation asyncOperation)
Parameters
asyncOperation
AsyncOperation
Properties
IsCompleted
public readonly bool IsCompleted { get; }
Property Value
- System.Boolean
Methods
GetResult()
public void GetResult()
OnCompleted(Action)
public void OnCompleted(Action continuation)
Parameters
continuation
System.Action
UnsafeOnCompleted(Action)
public void UnsafeOnCompleted(Action continuation)
Parameters
continuation
System.Action
Implements
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion