AutoResetUniTaskCompletionSource Class
Assembly: cs.temp.dll.dll
public class AutoResetUniTaskCompletionSource : IUniTaskSource, ITaskPoolNode<AutoResetUniTaskCompletionSource>, IPromise, IResolvePromise, IRejectPromise, ICancelPromise
Inheritance
System.Object →
AutoResetUniTaskCompletionSource
Members
Properties
Methods
Properties
NextNode
public ref AutoResetUniTaskCompletionSource NextNode { get; }
Task
public UniTask Task { get; }
Methods
Create()
public static AutoResetUniTaskCompletionSource Create()
CreateCompleted(out Int16)
public static AutoResetUniTaskCompletionSource CreateCompleted(out short token)
Parameters
token
System.Int16
CreateFromCanceled(CancellationToken, out Int16)
public static AutoResetUniTaskCompletionSource CreateFromCanceled(CancellationToken cancellationToken, out short token)
Parameters
cancellationToken
CancellationToken
token
System.Int16
CreateFromException(Exception, out Int16)
public static AutoResetUniTaskCompletionSource CreateFromException(Exception exception, out short token)
Parameters
exception
System.Exception
token
System.Int16
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 = null)
Parameters
cancellationToken
CancellationToken
TrySetException(Exception)
public bool TrySetException(Exception exception)
Parameters
exception
System.Exception
TrySetResult()
public bool TrySetResult()
UnsafeGetStatus()
public UniTaskStatus UnsafeGetStatus()
Implements