#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

#678 in Asynchronous

Download history 4184/week @ 2024-07-21 3084/week @ 2024-07-28 2794/week @ 2024-08-04 3556/week @ 2024-08-11 2258/week @ 2024-08-18 3045/week @ 2024-08-25 3273/week @ 2024-09-01 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 2259/week @ 2024-11-03

11,121 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