#idle #glib #async #async-await #gtk #await

no-std gidle_future

A future executor for the glib main loop idle time

2 unstable releases

0.2.0 May 6, 2021
0.1.0 Jun 12, 2020

#1875 in Asynchronous

MIT/Apache

12KB
125 lines

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.

Dependencies

~6MB
~131K SLoC