Function parking::pair

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

Creates a parker and an associated unparker.

Examples

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