Skip to main content

can_spawn

Function can_spawn 

Source
pub fn can_spawn() -> bool
Expand description

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.