pub trait GeeseThreadPool: 'static + Send + Sync {
    // Required method
    fn set_callback(&self, callback: Option<Arc<dyn Fn() + Send + Sync>>);
}
Expand description

Provides a backing implementation for multithreaded Geese contexts. This trait allows for defining and customizing how multiple threads complete the work of a context.

Required Methods§

source

fn set_callback(&self, callback: Option<Arc<dyn Fn() + Send + Sync>>)

Sets a callback that threadpool workers should repeatedly invoke.

Implementors§