Share via


agent::done Method

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

bool done();

Return Value

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.

Remarks

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

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

agent Class

agent_status Enumeration