Trait rquickjs_core::ExecutorSpawner [−][src]
This is supported on crate feature
futures
only.The trait to spawn execution of pending jobs on async runtime
Associated Types
type JoinHandle
[src]
The type of join handle which returns ()
Required methods
fn spawn_executor(self, task: Executor) -> Self::JoinHandle
[src]
Spawn pending jobs using async runtime spawn function
Implementations on Foreign Types
impl<'a> ExecutorSpawner for &SmolExecutor<'a>
[src]
type JoinHandle = Task<()>
This is supported on crate feature
futures
only.fn spawn_executor(self, task: Executor) -> Self::JoinHandle
[src]
Implementors
impl ExecutorSpawner for AsyncStd
[src]
This is supported on crate feature
async-std
only.The async_std
runtime for spawning executors.
type JoinHandle = JoinHandle<()>
This is supported on crate feature
futures
only.fn spawn_executor(self, task: Executor) -> Self::JoinHandle
[src]
impl ExecutorSpawner for Tokio
[src]
This is supported on crate feature
tokio
only.The tokio
async runtime for spawning executors.
type JoinHandle = JoinHandle<()>
This is supported on crate feature
futures
only.