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

#610 in Asynchronous

Download history 318/week @ 2023-11-23 230/week @ 2023-11-30 245/week @ 2023-12-07 388/week @ 2023-12-14 365/week @ 2023-12-21 253/week @ 2023-12-28 235/week @ 2024-01-04 266/week @ 2024-01-11 1792/week @ 2024-01-18 2610/week @ 2024-01-25 4250/week @ 2024-02-01 4153/week @ 2024-02-08 2631/week @ 2024-02-15 3116/week @ 2024-02-22 2720/week @ 2024-02-29 1512/week @ 2024-03-07

10,615 downloads per month
Used in 18 crates (3 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