UniTaskCompletionSource Class
Assembly: cs.temp.dll.dll
public class UniTaskCompletionSource : IUniTaskSource, IValueTaskSource, IPromise, IResolvePromise, IRejectPromise, ICancelPromise
Inheritance
System.Object →
UniTaskCompletionSource
Implements
System.Threading.Tasks.Sources.IValueTaskSource
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
System.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
System.Exception
TrySetResult()
public bool TrySetResult()
UnsafeGetStatus()
public UniTaskStatus UnsafeGetStatus()
Implements
System.Threading.Tasks.Sources.IValueTaskSource