Skip to main content

with_device

Function with_device 

Source
pub fn with_device<R>(dev: usize, f: impl FnOnce() -> R) -> R
Expand description

Run f with this thread pinned to dev, restoring the previous pin.