Function init_global_executor
Source pub fn init_global_executor(executor: impl Executor + 'static)
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.