pub fn spawn(work: impl Future<Output = ()> + 'static)Expand description
Run work on the page’s own task queue — where every door onto the
origin is awaited, since the frame that shares the document cannot wait
with it.
Off the browser there is no queue and nothing in work could answer, so
the future is dropped unstarted: a snapshot renders the chrome a door has
not been walked through.