Struct crossbeam_utils::thread::ScopedThreadBuilder
source · pub struct ScopedThreadBuilder<'scope, 'env: 'scope> { /* private fields */ }
Expand description
Scoped thread configuration. Provides detailed control over the properties and behavior of new scoped threads.
Implementations§
source§impl<'scope, 'env> ScopedThreadBuilder<'scope, 'env>
impl<'scope, 'env> ScopedThreadBuilder<'scope, 'env>
sourcepub fn name(self, name: String) -> ScopedThreadBuilder<'scope, 'env>
pub fn name(self, name: String) -> ScopedThreadBuilder<'scope, 'env>
Names the thread-to-be. Currently the name is used for identification only in panic messages.
sourcepub fn stack_size(self, size: usize) -> ScopedThreadBuilder<'scope, 'env>
pub fn stack_size(self, size: usize) -> ScopedThreadBuilder<'scope, 'env>
Sets the size of the stack for the new thread.