#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

#765 in Asynchronous

Download history 3227/week @ 2024-09-02 2991/week @ 2024-09-09 2546/week @ 2024-09-16 3226/week @ 2024-09-23 3062/week @ 2024-09-30 3191/week @ 2024-10-07 3388/week @ 2024-10-14 2374/week @ 2024-10-21 3054/week @ 2024-10-28 2182/week @ 2024-11-04 4660/week @ 2024-11-11 3700/week @ 2024-11-18 3147/week @ 2024-11-25 2859/week @ 2024-12-02 2477/week @ 2024-12-09 3967/week @ 2024-12-16

12,585 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