[][src]Function thin_main_loop::call_thread

pub fn call_thread<F: FnOnce() + Send + 'static>(
    thread: ThreadId,
    f: F
) -> Result<(), MainLoopError>

Runs a function on another thread. The target thread must run a main loop.