pub fn block(on: usize, deadline_ms: f64) -> boolExpand description
Wait until wake is called on on or deadline_ms (crate::time_ms time,
FOREVER: none) passes; true if it timed out. For building locks: on is any
address that identifies what is waited for. Without the scheduler, a wait with a
deadline times out at once and one without is a deadlock (trap).