Skip to contents

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_done and on_error callbacks are suppressed. The daemon itself keeps running.

Usage

rdesk_cancel_job(job_id)

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.