Function rustc_driver::util::scoped_thread[−][src]

pub fn scoped_thread<F, R>(cfg: Builder, f: F) -> R where
    F: FnOnce() -> R + Send,
    R: Send, 
Expand description

Like a thread::Builder::spawn followed by a join(), but avoids the need for 'static bounds.