#future #async #box #reuse #no-std

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

#780 in Asynchronous

Download history 4569/week @ 2024-11-21 1897/week @ 2024-11-28 2623/week @ 2024-12-05 4039/week @ 2024-12-12 1756/week @ 2024-12-19 1591/week @ 2024-12-26 5474/week @ 2025-01-02 5025/week @ 2025-01-09 5525/week @ 2025-01-16 6422/week @ 2025-01-23 4997/week @ 2025-01-30 4171/week @ 2025-02-06 5293/week @ 2025-02-13 6287/week @ 2025-02-20 7193/week @ 2025-02-27 7046/week @ 2025-03-06

26,485 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