UniTaskCompletionSource<T> Class
Assembly: cs.temp.dll.dll
public class UniTaskCompletionSource<T> : IUniTaskSource<T>, IUniTaskSource, IPromise<T>, IResolvePromise<T>, IRejectPromise, ICancelPromise
Inheritance
System.Object →
UniTaskCompletionSource<T>
Members
Constructors
Properties
Methods
Explicit Interface Implementations
Constructors
UniTaskCompletionSource()
public UniTaskCompletionSource()
Properties
Task
public UniTask<T> Task { get; }
Methods
GetResult(Int16)
public T 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
System.Action<System.Object>
state
System.Object
token
System.Int16
TrySetCanceled(CancellationToken)
public bool TrySetCanceled(CancellationToken cancellationToken = null)
Parameters
cancellationToken
CancellationToken
TrySetException(Exception)
public bool TrySetException(Exception exception)
Parameters
exception
System.Exception
TrySetResult(T)
public bool TrySetResult(T result)
UnsafeGetStatus()
public UniTaskStatus UnsafeGetStatus()
Explicit Interface Implementations
IUniTaskSource.GetResult(Int16)
void IUniTaskSource.GetResult(short token)
Parameters
token
System.Int16
Implements