Function init_global_executor
Source pub fn init_global_executor(executor: impl Executor + 'static)
Available on crate feature std only.
Expand description
Initialize the global executor for spawning Send futures.
This must be called before using spawn. The executor will be used
for all spawn calls across all threads.
ยงPanics
Panics if a global executor has already been set.