11 releases

0.2.8 May 30, 2024
0.2.7 Mar 24, 2024
0.2.4 Jan 23, 2024
0.2.3 Nov 23, 2023
0.1.1 Mar 22, 2021

#272 in Asynchronous

Download history 637/week @ 2024-08-26 618/week @ 2024-09-02 793/week @ 2024-09-09 443/week @ 2024-09-16 497/week @ 2024-09-23 672/week @ 2024-09-30 190/week @ 2024-10-07 389/week @ 2024-10-14 511/week @ 2024-10-21 727/week @ 2024-10-28 585/week @ 2024-11-04 677/week @ 2024-11-11 937/week @ 2024-11-18 600/week @ 2024-11-25 1056/week @ 2024-12-02 1586/week @ 2024-12-09

4,201 downloads per month
Used in 51 crates (3 directly)

MIT/Apache

15KB
290 lines

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

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–24MB
~344K SLoC