Method CancelAsync
- Namespace
- Millrace
- Assembly
- Millrace.dll
CancelAsync(JobId, CancellationToken)
Cancels a job, returning whether anything was cancelled.
ValueTask<bool> CancelAsync(JobId id, CancellationToken ct = default)
Parameters
idJobIdctCancellationToken
Returns
Remarks
The storage surface for this was frozen in 0.1 (ยง11.8) with the client API deliberately left until now. Pre-active states cancel outright, along with their transitive continuation closure. A job already running is asked to stop cooperatively โ the flag reaches it through lease renewal โ so a worker about to finish may still succeed, and this returning true is not a promise that the work did not happen.