/// Set a closure to be called immediately before a pool thread exits.
///
/// The closure is passed a 0-based index of the thread.
///
/// Default: None
Set a closure to be called immediately before a pool thread exits.
The closure is passed a 0-based index of the thread.

None
Set a closure to be called immediately before a pool thread exits . The closure is passed a 0 - based index of the thread . None
pub fn before_stop<F>(&mut self, f: F) -> &mut Self
        where F: Fn(usize) + Send + Sync + 'static
    {
        self.before_stop = Some(Arc::new(f));
        self
    }
pub fn before_stop < F > ( & mut self , f : F ) -> & mut Self where F : Fn ( usize ) + Send + Sync + ' static { self . before_stop = Some ( Arc :: new ( f ) ) ; self }
Set a closure to be called immediately before a pool thread exits.
Set a closure to be called immediately before a pool thread exits .
&mut self
<not_specific>
f
F
<not_specific>