Crates.io | poll-persist |
lib.rs | poll-persist |
version | 0.0.1 |
source | src |
created_at | 2023-05-21 08:57:57.586954 |
updated_at | 2023-05-21 08:57:57.586954 |
description | Poll a future multiple times |
homepage | https://github.com/panthios/rscore/tree/master/poll-persist |
repository | https://github.com/panthios/rscore |
max_upload_size | |
id | 869840 |
size | 15,377 |
poll-persist
This crate provides a Future
wrapper that can be resolved multiple times without consuming it.
poll-persist
is currently in a very early stage of development. It is not recommended for use in production code, but feel free to use it for experimentation. There are very few features, and the crate is extremely small (~35 lines). This crate is not guaranteed to maintain this small size, but it will always be as small as possible.
The Barley system requires a Future
wrapper that can be resolved multiple times from separate threads. This is not possible with the standard Future
trait, since it consumes the future when it is resolved. This crate provides a solution to this problem. If this sounds useful to you, feel free to use it.