pub(crate) fn park_current<F>(has_woken: F)where F: Fn() -> bool,
Blocks the current task unless has_woken() returns true.
has_woken()
true
Note that this method may return due to spurious wake events. It’s the caller’s responsibility to detect them (if necessary).