UniTaskCompletionSource Class
Assembly: cs.temp.dll.dll
public class UniTaskCompletionSource : IUniTaskSource, IPromise, IResolvePromise, IRejectPromise, ICancelPromise
Inheritance
System.Object →
UniTaskCompletionSource
Members
Constructors
Properties
Methods
Constructors
UniTaskCompletionSource()
public UniTaskCompletionSource()
Properties
Task
public UniTask Task { get; }
Methods
GetResult(Int16)
public void GetResult(short token)
Parameters
token
System.Int16
GetStatus(Int16)
public UniTaskStatus GetStatus(short token)
Parameters
token
System.Int16
OnCompleted(Action<Object>, Object, Int16)
public void OnCompleted(Action<object> continuation, object state, short token)
Parameters
continuation
Action<System.Object>
state
System.Object
token
System.Int16
TrySetCanceled(CancellationToken)
public bool TrySetCanceled(CancellationToken cancellationToken = default(CancellationToken))
Parameters
cancellationToken
System.Threading.CancellationToken
TrySetException(Exception)
public bool TrySetException(Exception exception)
Parameters
exception
Exception
TrySetResult()
public bool TrySetResult()
UnsafeGetStatus()
public UniTaskStatus UnsafeGetStatus()
Implements