pub fn init_local_executor(executor: impl LocalExecutor + 'static)Available on crate feature
std only.Expand description
Initialize the thread-local executor for spawning non-Send futures.
This must be called before using spawn_local. The executor will be used
for all spawn_local calls on the current thread.
ยงPanics
Panics if a local executor has already been set for this thread.