Export (0) Print
Expand All

agent::cancel Method

Moves an agent from either the agent_created or agent_runnable states to the agent_canceled state.

bool cancel();

true if the agent was canceled, false otherwise. An agent cannot be canceled if it has already started running or has already completed.

Header: agents.h

Namespace: concurrency

© 2015 Microsoft