gidle_future 0.2.0

A future executor for the glib main loop idle time
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented1 out of 6 items with examples
  • Size
  • Source code size: 21.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 422.95 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rodrigorc/gidle_future
    4 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rodrigorc

gidle_future

A future executor for the glib main loop idle time.

Latest version Documentation

It is compatible with most of the async frameworks out there, but you won't need complex synchronization primitives, because all you the code you write is run in the main thread.

For details, see the documentation.

Getting Started

It is recommended to go to crates.io for the newest released version, as well as links to the newest builds of the docs.

Add the following dependency to your Cargo manifest, together with the glib and future crates you need.

[dependencies]
gidle_future = "*"

Then any time you want to spawn an idle future:

gidle_future::spawn(async move { /* async code */ });

Or use any other style of async code.