#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 2957/week @ 2024-09-08 2589/week @ 2024-09-15 3232/week @ 2024-09-22 3040/week @ 2024-09-29 3218/week @ 2024-10-06 3392/week @ 2024-10-13 2205/week @ 2024-10-20 3173/week @ 2024-10-27 2260/week @ 2024-11-03 4538/week @ 2024-11-10 3716/week @ 2024-11-17 3255/week @ 2024-11-24 2834/week @ 2024-12-01 2418/week @ 2024-12-08 4024/week @ 2024-12-15 1133/week @ 2024-12-22

10,458 downloads per month
Used in 26 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