AutoResetUniTaskCompletionSource<T> Class
Assembly: cs.temp.dll.dll
public class AutoResetUniTaskCompletionSource<T> : IUniTaskSource<T>, IUniTaskSource, IPromisePoolItem, IPromise<T>, IResolvePromise<T>, IRejectPromise, ICancelPromise
Inheritance
System.Object →
AutoResetUniTaskCompletionSource<T>
Implements
IPromisePoolItem
Members
Properties
Methods
Explicit Interface Implementations
Properties
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
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
Finalize()
protected void Finalize()
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 = default(CancellationToken))
Parameters
cancellationToken
System.Threading.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
IPromisePoolItem