pub fn spawn(job: impl FnOnce() + Send + 'static)Expand description
Run job on a painting thread, or inline when none could be started. A panic inside
job is contained (crate::ffi_guard::contain) so one bad replay cannot take the
thread, and with it every later export, down; the job itself should answer its request
in that case, which is why toolkits wrap the paint and not the post.