Function rustc_rayon_core::tlv::with[][src]

pub fn with<F: FnOnce() -> R, R>(value: usize, f: F) -> R
Expand description

Sets the current thread-local value to value inside the closure. The old value is restored when the closure ends