We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scoped_thread
1 parent 0a7d297 commit 1e8ec2dCopy full SHA for 1e8ec2d
src/librustc_interface/util.rs
@@ -102,6 +102,8 @@ impl Write for Sink {
102
}
103
104
105
+/// Like a `thread::Builder::spawn` followed by a `join()`, but avoids the need
106
+/// for `'static` bounds.
107
#[cfg(not(parallel_compiler))]
108
pub fn scoped_thread<F: FnOnce() -> R + Send, R: Send>(cfg: thread::Builder, f: F) -> R {
109
struct Ptr(*mut ());
0 commit comments