6 releases

0.2.3 Jan 14, 2023
0.2.2 Apr 16, 2020
0.2.1 Feb 4, 2020
0.1.1 Feb 4, 2020

#646 in Asynchronous

Download history 437/week @ 2024-01-05 325/week @ 2024-01-12 557/week @ 2024-01-19 333/week @ 2024-01-26 632/week @ 2024-02-02 789/week @ 2024-02-09 659/week @ 2024-02-16 695/week @ 2024-02-23 334/week @ 2024-03-01 448/week @ 2024-03-08 725/week @ 2024-03-15 1063/week @ 2024-03-22 655/week @ 2024-03-29 360/week @ 2024-04-05 295/week @ 2024-04-12 450/week @ 2024-04-19

2,030 downloads per month
Used in noria-server


225 lines

Crates.io Documentation Codecov

Strawpoll — a wrapper to avoid spurious polling.

Sometimes, you have a future that itself contains smaller futures. When the larger future is polled, it polls those child futures to see if any of them have made progress. This can be inefficient if polling such a future is expensive; when the big future is woken up, it is usually because one of its child futures was notified, and ideally only that one future should be polled. Polling the other child futures that were not notified is wasting precious cycles. This crate provides a wrapper for Future types, and other types that you may wish to call poll-like methods on that avoids such spurious calls to poll.


Licensed under either of

at your option.


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