Expand description
TODO(doc): @keroro520
Structs§
- Cancellation
Token - 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
toCKB_HANDLES
- wait_
all_ ckb_ services_ exit - Wait all ckb services exit