Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
agent::done Method

agent::done Method

Moves an agent into the agent_done state, indicating that the agent has completed.

bool done();

true if the agent is moved to the agent_done state, false otherwise. An agent that has been canceled cannot be moved to the agent_done state.

This method should be called at the end of the run method, when you know the execution of your agent has completed.

Header: agents.h

Namespace: concurrency

Show:
© 2015 Microsoft