pr7.10
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user