call_thread

Function call_thread 

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

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