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

#248 in Asynchronous

Download history 875/week @ 2024-07-29 944/week @ 2024-08-05 797/week @ 2024-08-12 521/week @ 2024-08-19 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

2,511 downloads per month
Used in 50 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
~345K SLoC