get_spawn_driver

Function get_spawn_driver 

Source
pub fn get_spawn_driver() -> &'static dyn Driver
Available on crate feature task only.
Expand description

Get the globally registered instance of syscall::Driver.

If the feature “futures-spawn” is enabled, this function will create a default instance of “SpawnDriver” based on the futures::executor::ThreadPool implementation, otherwise you should call [register_ spawn_driver] to register your own implementation instance.