System::Threading::Tasks

Classes

ClassDescription
ResultTaskA Task specialization that returns a result value upon completion.
ResultValueTaskRepresents a hybrid task-like type that can wrap either a direct result value or a ResultTask.
TaskRepresents an asynchronous operation that can be awaited and composed with other tasks.
TaskSchedulerRepresents an object that handles the low-level work of queuing tasks onto threads.
ValueTaskProvides an awaitable result of an asynchronous operation.

Functions

FunctionDescription
void DispatchCurrentContext()Dispatches all tasks bound to this thread synchronously.
TaskPtr Delay(int32_t)Creates a task that completes after a time delay.
TaskPtr Delay(int32_t, const CancellationToken&)
TaskPtr FromException(const Exception&)
RTaskPtr<TResult> FromException(const Exception&)
RTaskPtr<TResult> FromResult(TResult)
TaskPtr Run(const Action<>&)
TaskPtr Run(const Action<>&, const CancellationToken&)
TaskPtr Run(const Func<TaskPtr>&)
RTaskPtr<TResult> Run(const Func<TResult>&)
TaskPtr WhenAll(const ArrayPtr<TaskPtr>&)
TaskPtr WhenAll(const SharedPtr<Collections::Generic::IEnumerable<TaskPtr>>&)
RTaskPtr<ArrayPtr<T>> WhenAll(SharedPtr<Collections::Generic::IEnumerable<RTaskPtr<T>>>)
RTaskPtr<ArrayPtr<T>> WhenAll(ArrayPtr<RTaskPtr<T>>)
Runtime::CompilerServices::YieldAwaitable Yield()

Enums

EnumDescription
TaskStatus