parking

Function pair

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

Creates a parker and an associated unparker.

ยงExamples

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