This commit is contained in:
2026-03-24 13:40:42 +00:00
parent f6d33cd8e5
commit c07a1cc230
2 changed files with 416 additions and 11 deletions
+2 -1
View File
@@ -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 };