Skip to main content

global_cancellation_token

Function global_cancellation_token 

Source
pub fn global_cancellation_token() -> ProcessCancellation
Expand description

Return the process-wide token used by ProcessRunner::run.

CLI entrypoints can connect an OS interruption handler to this token so subprocesses launched through the CLI and SDK share one cancellation scope.