Function park_current

Source
pub(crate) fn park_current<F>(has_woken: F)
where F: Fn() -> bool,
Expand description

Blocks the current task unless has_woken() returns true.

Note that this method may return due to spurious wake events. It’s the caller’s responsibility to detect them (if necessary).