| Crates.io | simple_cancelation_token |
| lib.rs | simple_cancelation_token |
| version | 0.0.1 |
| created_at | 2025-06-11 20:12:58.807183+00 |
| updated_at | 2025-06-11 20:12:58.807183+00 |
| description | Simple cancelation token |
| homepage | |
| repository | https://github.com/jlyonsmith/simple_cancelation_token |
| max_upload_size | |
| id | 1709079 |
| size | 33,259 |
This is a very simple implementation of an inter-thread cancelation token. It is modeled after tokio_util::sync::CancelationToken and uses cloning for passing it to other threads vs. having multiple separate structs with different functions. It's for when you don't need all of tokio and you just want to signal worker threads to stop, for example, after hitting Ctrl+C.
Plus, it also uses the American spelling of cancelation just to be different.