poll-persist 0.0.1

Poll a future multiple times
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented0 out of 3 items with examples
  • Size
  • Source code size: 22.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • carlosskii

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.