Crates.io | stopper |
lib.rs | stopper |
version | 0.2.8 |
source | src |
created_at | 2021-03-05 02:35:11.546393 |
updated_at | 2024-05-30 22:30:19.170506 |
description | an async stream and future stopper mechanism |
homepage | |
repository | https://github.com/jbr/stopper |
max_upload_size | |
id | 364109 |
size | 41,553 |
Stopper is an async concurrency primitive to stop both streams and futures. This was created to facilitate graceful shutdown in a http framework, but likely has utility beyond that.
For a more complete graceful shutdown story, see Swansong
, which uses this crate.
This crate uses #![deny(unsafe_code)]
.