Expand description
Ctrl+C / graceful shutdown over tokio_util::sync::CancellationToken.
rskit standardizes on tokio_util’s CancellationToken as its single
cooperative-cancellation type: rskit-worker handlers and rskit-process
already consume it directly, so the CLI layer uses the same type end-to-end
rather than introducing a parallel wrapper. The token is re-exported here so a
CLI can name it without depending on tokio-util directly, and on_ctrl_c
installs the one-shot interrupt handler that drives it.
Structs§
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.
Functions§
- on_
ctrl_ c - Install a first-Ctrl+C handler and return the cooperative cancellation token.