FutureSpawner

Trait FutureSpawner 

Source
pub trait FutureSpawner {
    // Required method
    fn spawn_boxed_future(&self, future: BoxFuture<'static, ()>);
}
Expand description

Future executor must implement this trait to support register to hala register system.

Required Methods§

Source

fn spawn_boxed_future(&self, future: BoxFuture<'static, ()>)

The implementation must panic if this function spawn future failed.

Implementations on Foreign Types§

Source§

impl FutureSpawner for ThreadPool

Source§

fn spawn_boxed_future(&self, future: BoxFuture<'static, ()>)

Implementors§