poll-persist

Crates.iopoll-persist
lib.rspoll-persist
version0.0.1
sourcesrc
created_at2023-05-21 08:57:57.586954
updated_at2023-05-21 08:57:57.586954
descriptionPoll a future multiple times
homepagehttps://github.com/panthios/rscore/tree/master/poll-persist
repositoryhttps://github.com/panthios/rscore
max_upload_size
id869840
size15,377
Carlos Kieliszewski (carlosskii)

documentation

https://docs.rs/poll-persist

README

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.

Why would you want this?

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.

Commit count: 36

cargo fmt