UniTask.Awaiter Struct
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public readonly struct Awaiter : ICriticalNotifyCompletion, INotifyCompletion
Implements
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion
Members
Constructors
Name | Description |
---|---|
Awaiter(in Uni |
Properties
Name | Description |
---|---|
Is |
Methods
Name | Description |
---|---|
Get |
|
On |
|
SourceOnCompleted(Action<Object>, Object) | If register manually continuation, you can use it instead of for compiler OnCompleted methods. |
Unsafe |
Constructors
Awaiter(in UniTask)
public Awaiter(in UniTask task)
Parameters
task
UniTask
Properties
IsCompleted
public readonly bool IsCompleted { get; }
Property Value
- System.
Boolean
Methods
GetResult()
public readonly void GetResult()
OnCompleted(Action)
public readonly void OnCompleted(Action continuation)
Parameters
continuation
System.Action
SourceOnCompleted(Action<Object>, Object)
If register manually continuation, you can use it instead of for compiler OnCompleted methods.
public readonly void SourceOnCompleted(Action<object> continuation, object state)
Parameters
continuation
System.Action <System.Object >state
System.Object
UnsafeOnCompleted(Action)
public readonly void UnsafeOnCompleted(Action continuation)
Parameters
continuation
System.Action
Implements
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion