This commit is contained in:
2026-03-24 13:40:42 +00:00
parent 49c9b018bc
commit f6d33cd8e5
3 changed files with 251 additions and 51 deletions
@@ -87,6 +87,9 @@ impl Scheduler {
self.ready_queue.push_back(e.coro);
}
}
/// Returns true if there are any sleeping coroutines.
pub fn has_sleeping(&self) -> bool { !self.sleeping.is_empty() }
}
#[cfg(test)]