Registry / async / futures-glib

futures-glib

JSON →
library0.4.0rscratesunverified

Spawn futures on the glib event loop.

# Cargo.toml [dependencies] futures-glib = "0.4.0"
INSTALL
IMPORT
SIG · FUTURES-GLIB
F
futures-glib
asyncrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Executor
use futures_glib::Executor;

Spawn a future on the GLib main loop.

use futures_glib::Executor; fn main() { let executor = Executor::new(); executor.spawn(async { println!("Future running on GLib event loop"); }); }
Debug
Known issues
gotchaRequires GLib runtime to be initialized
fix
Ensure GLib main loop is running before spawning futures
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
1
Resources
futures-glib — cargo add futures-glib · libregistry