pub fn join<A: Send, B>(
background: impl FnOnce() -> A + Send,
foreground: impl FnOnce() -> B,
) -> (A, B)Expand description
Run background on another thread while foreground runs on this one (native); on
wasm32, foreground then background, in order. background must be a pure function of
what it reads, so that the order makes no difference.