#future #async #box #reuse

no-std reusable-box-future

A reusable Pin<Box<dyn Future<Output = T> + Send>>

2 unstable releases

0.2.0 Feb 27, 2021
0.1.0 Feb 20, 2021

#771 in Asynchronous

Download history 3988/week @ 2024-11-08 3908/week @ 2024-11-15 3896/week @ 2024-11-22 2351/week @ 2024-11-29 2618/week @ 2024-12-06 4066/week @ 2024-12-13 1293/week @ 2024-12-20 2600/week @ 2024-12-27 5129/week @ 2025-01-03 5127/week @ 2025-01-10 5886/week @ 2025-01-17 6397/week @ 2025-01-24 4678/week @ 2025-01-31 4222/week @ 2025-02-07 2315/week @ 2025-02-14

12,417 downloads per month
Used in 29 crates (4 directly)

MIT license

20KB
354 lines

reusable-box-future

license crates.io docs

A reusable Pin<Box<dyn Future<Output = T> + Send>>.

This lets you replace the future stored in the box without reallocating when the size and alignment permits it.

This code was extracted from tokio-util crate.

License

MIT


lib.rs:

A reusable Pin<Box<dyn Future<Output = T> + Send>>.

This lets you replace the future stored in the box without reallocating when the size and alignment permits it.

This code was extracted from tokio-util crate.

No runtime deps