:sig
function job_cancel(job : dval) bool

:params
job : a job ID as `dval`

:returns
`true` when the system cancels an active job. Otherwise, `false`.

:content
`job_cancel()` requests cancellation of a job. A canceled job reports the `cancelled` state.

:example capy render
var job := shell_exec("sleep 5", background: true, timeout_ms: 10000)
print(job_cancel(job), "\n")

:see-group
jobs
