mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Introduce GlobalScope::get_runnable_wrapper
This commit is contained in:
parent
ca8c6fb072
commit
514819f37a
4 changed files with 16 additions and 13 deletions
|
@ -19,6 +19,6 @@ pub trait TaskSource {
|
|||
-> Result<(), ()>
|
||||
where T: Runnable + Send + 'static;
|
||||
fn queue<T: Runnable + Send + 'static>(&self, msg: Box<T>, global: GlobalRef) -> Result<(), ()> {
|
||||
self.queue_with_wrapper(msg, &global.get_runnable_wrapper())
|
||||
self.queue_with_wrapper(msg, &global.as_global_scope().get_runnable_wrapper())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue