relay_threading

Trait ThreadSpawn

Source
pub trait ThreadSpawn {
    // Required method
    fn spawn(&mut self, thread: Thread) -> Result<()>;
}
Expand description

ThreadSpawn defines how threads are spawned in an AsyncPool.

This trait allows customization of thread creation (for example, setting names or adjusting stack sizes) without altering the core functionality of the pool.

Required Methods§

Source

fn spawn(&mut self, thread: Thread) -> Result<()>

Spawns a new thread using the provided configuration.

Implementors§