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