Trait rquickjs_core::ExecutorSpawner[][src]

pub trait ExecutorSpawner: Sized {
    type JoinHandle;
    fn spawn_executor(self, task: Executor) -> Self::JoinHandle;
}
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 ()

Loading content...

Required methods

fn spawn_executor(self, task: Executor) -> Self::JoinHandle[src]

Spawn pending jobs using async runtime spawn function

Loading content...

Implementations on Foreign Types

impl<'a> ExecutorSpawner for &SmolExecutor<'a>[src]

type JoinHandle = Task<()>

This is supported on crate feature futures only.
Loading content...

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.

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.
Loading content...