Crates.io | gidle_future |
lib.rs | gidle_future |
version | 0.2.0 |
source | src |
created_at | 2020-06-12 19:26:28.738779 |
updated_at | 2021-05-06 07:21:11.9233 |
description | A future executor for the glib main loop idle time |
homepage | |
repository | https://github.com/rodrigorc/gidle_future |
max_upload_size | |
id | 253367 |
size | 11,840 |
A future executor for the glib main loop idle time.
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.
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.