Task.stop

Stops task. This method merely schedules the task to stop and will not wait for the task to have completely stopped. Use Task.join to stop and wait for completion.

class Task
bool
stop
()

Return Value

Type: bool

TRUE if the task could be stopped.

MT safe.