mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
ensure clean shutdown of all threads running JS
This commit is contained in:
parent
0b61cfc3ae
commit
44ebca72da
25 changed files with 565 additions and 232 deletions
|
@ -147,4 +147,8 @@ impl MicrotaskQueue {
|
|||
pub fn empty(&self) -> bool {
|
||||
self.microtask_queue.borrow().is_empty()
|
||||
}
|
||||
|
||||
pub fn clear(&self) {
|
||||
self.microtask_queue.borrow_mut().clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue