Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F>(window: HWND, request: usize, work: F)
where F: FnOnce() -> Message + Send + 'static,
Expand description

Runs work on a new thread and posts its result to window, tagged with request so a scene can drop an answer it has moved past.