static ExceptionDispatchInfo Capture(Exception source)
Exception SourceException
static string InvalidOperation_IncompleteAsyncOperation
static string InvalidOperation_IncorrectToken
static string InvalidOperation_MultipleContinuations
void SetCompletionAndInvokeContinuation()
AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken=default(CancellationToken), bool pooled=false)
Action< object > _continuation
static readonly Action< object > s_availableSentinel
ExecutionContext _executionContext
void OnCompleted(Action< object > continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
static void ThrowMultipleContinuations()
static readonly Action< object > s_completedSentinel
static void AvailableSentinel(object s)
volatile int _completionReserved
bool TryReserveCompletionIfCancelable()
bool TrySetResult(TResult item)
static CancellationTokenRegistration UnsafeRegister(CancellationToken cancellationToken, Action< object > action, object state)
bool UnregisterCancellation()
object _schedulingContext
bool TrySetCanceled(CancellationToken cancellationToken=default(CancellationToken))
static void ThrowIncompleteOperationException()
static void CompletedSentinel(object s)
ExceptionDispatchInfo _error
ValueTask< TResult > ValueTaskOfT
void UnsafeQueueSetCompletionAndInvokeContinuation()
bool TrySetException(Exception exception)
readonly CancellationTokenRegistration _registration
ValueTaskSourceStatus GetStatus(short token)
object _continuationState
static void QueueUserWorkItem(Action< object > action, object state)
static void ThrowIncorrectCurrentIdException()
TResult GetResult(short token)
AsyncOperation< TResult > Next
readonly bool _runContinuationsAsynchronously
void UnsafeQueueUserWorkItem(Action< object > action, object state)
static ? ExecutionContext Capture()
static void Run(ExecutionContext executionContext, ContextCallback callback, object? state)
static int CompareExchange(ref int location1, int value, int comparand)
static ? SynchronizationContext Current
static TaskScheduler Current
static TaskScheduler Default
static new TaskFactory< TResult > Factory
static bool QueueUserWorkItem(WaitCallback callBack)
static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object? state)
static void Write(ref bool location, bool value)
void GetResult(short token)
ValueTaskSourceOnCompletedFlags
static CancellationToken None