pr7.11
This commit is contained in:
@@ -52,7 +52,8 @@ impl Scheduler {
|
||||
|
||||
// ---------- Sleeping operations ----------
|
||||
|
||||
/// Put a coroutine to sleep until `wake_tick` (inclusive).
|
||||
/// Put a coroutine to sleep until `wake_tick`.
|
||||
/// A coroutine is woken when `current_tick >= wake_tick`.
|
||||
/// The sleeping list is kept stably ordered to guarantee determinism.
|
||||
pub fn sleep_until(&mut self, coro: HeapRef, wake_tick: u64) {
|
||||
let entry = SleepEntry { wake_tick, seq: self.next_seq, coro };
|
||||
|
||||
Reference in New Issue
Block a user