pub fn can_spawn() -> bool
Whether work can be spawned from here: natively only inside a tokio runtime (a drop off-runtime, or during shutdown, has none); always in the browser, whose event loop is the runtime.