Attempts to stop a background job and remove it from the job registry. The behaviour differs between the two async backends:
- callr
The subprocess is killed immediately via
process$kill().- mirai
The task inside the persistent daemon cannot be interrupted. The job is removed from the registry only, so its
on_doneandon_errorcallbacks are suppressed. The daemon itself keeps running.
Arguments
- job_id
Character string. The job ID returned by
rdesk_async().
Value
invisible(TRUE) if the job was found and cancelled,
invisible(FALSE) if no job with that ID exists.
