[−][src]Function thin_main_loop::call_asap
pub fn call_asap<F: FnOnce() + 'static>(f: F) -> Result<(), MainLoopError>
Runs a function as soon as possible, i e, when the main loop runs.
Corresponding platform specific APIs:
- glib: g_idle_add
- node.js: process.nextTick
- web: Promise.resolve().then(...)
- win32: PostMessage