Crates.io | reusable-box-future |
lib.rs | reusable-box-future |
version | 0.2.0 |
source | src |
created_at | 2021-02-20 18:42:56.93395 |
updated_at | 2021-02-27 11:48:00.562939 |
description | A reusable `Pin |
homepage | |
repository | https://github.com/oblique/reusable-box-future |
max_upload_size | |
id | 358119 |
size | 21,618 |
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.