Macro gtk_macros::spawn [−][src]
macro_rules! spawn { ($future:expr) => { ... }; }
Spawn a future
-
Before:
Example:
let ctx = glib::MainContext::default(); ctx.spawn_local(async { something.await; });
-
After:
Example:
spawn!(async { something.await; });