simple_cancelation_token

Crates.iosimple_cancelation_token
lib.rssimple_cancelation_token
version0.0.1
created_at2025-06-11 20:12:58.807183+00
updated_at2025-06-11 20:12:58.807183+00
descriptionSimple cancelation token
homepage
repositoryhttps://github.com/jlyonsmith/simple_cancelation_token
max_upload_size
id1709079
size33,259
John Lyon-Smith (jlyonsmith)

documentation

README

Simple Cancelation Token

coverage Crates.io Docs.rs

Summary

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.

Commit count: 4

cargo fmt