parking

Function pair

source
pub fn pair() -> (Parker, Unparker)
Expand description

Creates a parker and an associated unparker.

ยงExamples

let (p, u) = parking::pair();