AutoResetUniTaskCompletionSource<T> Class
Assembly: cs.temp.dll.dll
public class AutoResetUniTaskCompletionSource<T> : IUniTaskSource<T>, IUniTaskSource, ITaskPoolNode<AutoResetUniTaskCompletionSource<T>>, IPromise<T>, IResolvePromise<T>, IRejectPromise, ICancelPromise
Inheritance
System.Object →
AutoResetUniTaskCompletionSource<T>
Members
Properties
Methods
Explicit Interface Implementations
Properties
NextNode
public ref AutoResetUniTaskCompletionSource<T> NextNode { get; }
Task
public UniTask<T> Task { get; }
Methods
Create()
public static AutoResetUniTaskCompletionSource<T> Create()
CreateFromCanceled(CancellationToken, out Int16)
public static AutoResetUniTaskCompletionSource<T> CreateFromCanceled(CancellationToken cancellationToken, out short token)
Parameters
cancellationToken
CancellationToken
token
System.Int16
CreateFromException(Exception, out Int16)
public static AutoResetUniTaskCompletionSource<T> CreateFromException(Exception exception, out short token)
Parameters
exception
System.Exception
token
System.Int16
CreateFromResult(T, out Int16)
public static AutoResetUniTaskCompletionSource<T> CreateFromResult(T result, out short token)
Parameters
result
T
token
System.Int16
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