get_IsCanceled()

ResultValueTask::get_IsCanceled() const method

Gets a value indicating whether the task completed due to being canceled.

bool System::Threading::Tasks::ResultValueTask<T>::get_IsCanceled() const

Return Value

bool True if the task was canceled; otherwise, false.

Remarks

Returns false if the task contains a direct result value.

See Also