[][src]Trait yatp::LocalSpawn

pub trait LocalSpawn {
    type Task;
    type Remote: RemoteSpawn;
    fn spawn(&mut self, t: impl Into<Self::Task>);
fn remote(&self) -> Self::Remote; }

Allows spawn a task inside the thread pool.

Associated Types

Loading content...

Required methods

fn spawn(&mut self, t: impl Into<Self::Task>)

fn remote(&self) -> Self::Remote

Gets a remote instance to allow spawn task back to the pool.

Loading content...

Implementors

Loading content...