Registry / utility / ckb-stop-handler

ckb-stop-handler

JSON →
library1.1.0rscratesunverified

Stop handler utilities for graceful shutdown in CKB (Nervos) applications.

# Cargo.toml [dependencies] ckb-stop-handler = "1.1.0"
INSTALL
IMPORT
SIG · CKB-STOP-HANDLER
C
ckb-stop-handler
utilityrustv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StopHandler
use ckb_stop_handler::StopHandler;

Create a stop handler and signal shutdown.

use ckb_stop_handler::StopHandler; use std::sync::Arc; use std::thread; fn main() { let stop = StopHandler::new(); let s = stop.clone(); thread::spawn(move || { s.wait(); println!("Shutting down..."); }); stop.stop(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ckb-stop-handler — cargo add ckb-stop-handler · libregistry