System::Threading::Tasks::ValueTask class

ValueTask class

Provides an awaitable result of an asynchronous operation.

class ValueTask : public System::IEquatable<ValueTask>,
                  public System::Details::BoxableObjectBase

Methods

MethodDescription
AsTask() constConverts this ValueTask to a shared pointer to Task.
ConfigureAwait(bool) constConfigures an awaiter for this task.
Equals(ValueTask) overrideDetermines whether this instance equals another ValueTask instance.
Equals(System::SharedPtr<System::Object>) overrideDetermines whether this instance equals another object.
get_IsCanceled() constGets a value indicating whether the task completed due to being canceled.
get_IsCompleted() constGets a value indicating whether the task has completed.
get_IsCompletedSuccessfully() constGets a value indicating whether the task completed successfully.
get_IsFaulted() constGets a value indicating whether the task completed due to an unhandled exception.
GetAwaiter() constGets an awaiter for this task to support await expressions.
operator!=(const ValueTask&) constInequality operator for ValueTask.
operator==(const ValueTask&) constEquality operator for ValueTask.
ValueTask()Constructs an empty, uninitialized ValueTask.
ValueTask(const TaskPtr&)Constructs a ValueTask from a shared pointer to a Task.

See Also