macro_rules! spawn {
($future:expr) => { ... };
}
Expand description
Spawn a future
-
Before:
Example:
let ctx = glib::MainContext::default(); ctx.spawn_local(async { something.await; });
-
After:
Example:
spawn!(async { something.await; });