Crate ckb_stop_handler

Source
Expand description

TODO(doc): @keroro520

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.

Functions§

broadcast_exit_signals
Broadcast exit signals to all threads and all tokio tasks
has_received_stop_signal
Check if the ckb process has received stop signal
new_crossbeam_exit_rx
Create a new crossbeam Receiver for exit signal
new_tokio_exit_rx
Create a new CancellationToken for exit signal
register_thread
Register a thread JoinHandle to CKB_HANDLES
wait_all_ckb_services_exit
Wait all ckb services exit