Struct maybe_rayon::ThreadBuilder
pub struct ThreadBuilder { /* private fields */ }
Expand description
Thread builder used for customization via
ThreadPoolBuilder::spawn_handler
.
Implementations§
§impl ThreadBuilder
impl ThreadBuilder
pub fn stack_size(&self) -> Option<usize>
pub fn stack_size(&self) -> Option<usize>
Gets the value that was specified by ThreadPoolBuilder::stack_size()
.
pub fn run(self)
pub fn run(self)
Executes the main loop for this thread. This will not return until the thread pool is dropped.