stopper

an async stream and future stopper mechanism

APACHE-2.0 License

Downloads
121K
Stars
4
Committers
1

stopper

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.

Safety

This crate uses #![deny(unsafe_code)].

License