use libtock_core::syscalls; pub fn yieldk_for bool>(cond: F) { while !cond() { unsafe { syscalls::raw::yieldk(); } } }