3 releases

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

#5 in #dropped

Download history 2143/week @ 2024-07-24 1882/week @ 2024-07-31 1908/week @ 2024-08-07 1904/week @ 2024-08-14 1673/week @ 2024-08-21 1625/week @ 2024-08-28 1154/week @ 2024-09-04 2083/week @ 2024-09-11 1571/week @ 2024-09-18 1414/week @ 2024-09-25 1736/week @ 2024-10-02 1404/week @ 2024-10-09 1627/week @ 2024-10-16 1709/week @ 2024-10-23 1109/week @ 2024-10-30 1048/week @ 2024-11-06

5,860 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.3–6MB
~31K SLoC