#future #box #async #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

#918 in Asynchronous

Download history 3382/week @ 2024-06-15 1873/week @ 2024-06-22 2123/week @ 2024-06-29 4340/week @ 2024-07-06 4705/week @ 2024-07-13 4175/week @ 2024-07-20 3084/week @ 2024-07-27 2806/week @ 2024-08-03 3534/week @ 2024-08-10 2236/week @ 2024-08-17 3031/week @ 2024-08-24 3276/week @ 2024-08-31 2961/week @ 2024-09-07 2603/week @ 2024-09-14 3252/week @ 2024-09-21 2983/week @ 2024-09-28

12,611 downloads per month
Used in 22 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