3 releases

0.1.2 Feb 1, 2023
0.1.1 Jan 31, 2023
0.1.0 Jan 31, 2023

#10 in #dropped

Download history 1386/week @ 2024-01-05 1649/week @ 2024-01-12 1701/week @ 2024-01-19 1771/week @ 2024-01-26 1456/week @ 2024-02-02 1748/week @ 2024-02-09 2081/week @ 2024-02-16 1850/week @ 2024-02-23 1486/week @ 2024-03-01 1551/week @ 2024-03-08 1931/week @ 2024-03-15 1264/week @ 2024-03-22 1364/week @ 2024-03-29 1381/week @ 2024-04-05 1392/week @ 2024-04-12 1237/week @ 2024-04-19

5,549 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

9KB
193 lines

Yet another WaitGroup implementation.

None of the existing crates fit my needs exactly, so here's one more that (hopefully) will.

Highlights:

  • Generalizes "tasks" to Refs. More of a change in nomenclature than anything else. It's not always a group of tasks you're waiting on - it could be that you're waiting on a gaggle of structs to all be dropped.
  • Refs and Waiters are entirely disjoint. You don't need a Waiter to create a new Ref.
  • Everything is cloneable and behaves as one would expect - cloned Refs will all block every cloned Waiter, which can be awaited concurrently.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tokio-core by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.4–7MB
~32K SLoC