Skip to main content

block_on_nautilus

Function block_on_nautilus 

Source
pub fn block_on_nautilus<F>(future: F) -> F::Output
where F: Future,
Expand description

Blocks on future using the global Nautilus runtime.

The future must not contain tasks, timers, or I/O resources already bound to an ambient runtime. Use block_on_nautilus_with when the operation can be constructed lazily.

ยงPanics

Panics when called from a current-thread runtime or a LocalSet. Moving a potentially non-Send future out of those contexts is not possible; use block_on_nautilus_with for operations whose future and output can cross a scoped thread boundary.