Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

task_canceled Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

This class describes an exception thrown by the PPL tasks layer in order to force the current task to cancel. It is also thrown by the get() method on task, for a canceled task.

class task_canceled : public std::exception;

Public Constructors

NameDescription
task_canceled::task_canceled ConstructorOverloaded. Constructs a task_canceled object.

exception

task_canceled

Header: concrt.h

Namespace: concurrency

Constructs a task_canceled object.

explicit _CRTIMP task_canceled(_In_z_ const char* _Message) throw();

task_canceled() throw();

Parameters

_Message
A descriptive message of the error.

concurrency Namespace

Show:
© 2017 Microsoft