1 unstable release
Uses new Rust 2024
0.1.0 | Mar 11, 2025 |
---|
#100 in #token
115 downloads per month
38KB
553 lines
Smol Cancellation Token
A simple cancellation token implementation for Smol, copied from tokio-util's cancellation token, and replace the waker
with EventListener
to make it cross async runtime compatible.
lib.rs
:
An asynchronously awaitable CancellationToken
.
The token allows to signal a cancellation request to one or more tasks.
Dependencies
~355KB