KestrunTaskService.Cancel method
Attempts to cancel a task.
public bool Cancel(string id)
Remarks
If the task has not been started (NotStarted) it is transitioned directly to the terminal Stopped state so it can be removed later and does not remain orphaned.
See Also
- class KestrunTaskService
- namespace Kestrun.Tasks