This documentation is archived and is not being maintained.

agent::cancel Method

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

_CRTIMP2 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

Show: