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.