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
System.Threading.CancellationToken
token
System.Int16
CreateFromException(Exception, out Int16)
public static AutoResetUniTaskCompletionSource<T> CreateFromException(Exception exception, out short token)
Parameters
exception
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
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(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