[][src]Trait yatp::RemoteSpawn

pub trait RemoteSpawn: Sync + Send {
    type Task;
    fn spawn(&self, t: impl Into<Self::Task>);
}

Allows spawn a task to the thread pool from a different thread.

Associated Types

type Task

Loading content...

Required methods

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

Loading content...

Implementors

Loading content...