try_init_local_executor

Function try_init_local_executor 

Source
pub fn try_init_local_executor<E>(executor: E) -> Result<(), E>
where E: LocalExecutor + 'static,
Available on crate feature std only.
Expand description

Try to initialize the thread-local executor for spawning non-Send futures.

This is a non-panicking version of init_local_executor.