5public class TaskCompletionSource
bool TrySetException(Exception exception)
void SetException(IEnumerable< Exception > exceptions)
bool TrySetException(IEnumerable< Exception > exceptions)
void SetResult(TResult result)
TaskCompletionSource(object? state, TaskCreationOptions creationOptions)
TaskCompletionSource(TaskCreationOptions creationOptions)
readonly Task< TResult > _task
bool TrySetCanceled(CancellationToken cancellationToken)
bool TrySetResult(TResult result)
TaskCompletionSource(object? state)
void SetException(Exception exception)
void SetCanceled(CancellationToken cancellationToken)
bool TrySetResult(TResult result)
void SpinUntilCompleted()
bool TrySetCanceled(CancellationToken tokenToRecord)
bool TrySetException(object exceptionObject)
static void ThrowInvalidOperationException()
static void ThrowArgumentNullException(string name)
static void ThrowArgumentException(ExceptionResource resource)