mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename Task to TaskBox
This commit is contained in:
parent
f088b708c9
commit
52527d6f9d
19 changed files with 71 additions and 69 deletions
|
@ -19,7 +19,7 @@ use js::jsapi::{HandleValue, JSContext};
|
|||
use script_traits::{ScriptMsg, DOMMessage};
|
||||
use servo_url::ServoUrl;
|
||||
use std::cell::Cell;
|
||||
use task::Task;
|
||||
use task::TaskBox;
|
||||
|
||||
pub type TrustedServiceWorkerAddress = Trusted<ServiceWorker>;
|
||||
|
||||
|
@ -104,9 +104,9 @@ impl ServiceWorkerMethods for ServiceWorker {
|
|||
event_handler!(statechange, GetOnstatechange, SetOnstatechange);
|
||||
}
|
||||
|
||||
impl Task for SimpleWorkerErrorHandler<ServiceWorker> {
|
||||
impl TaskBox for SimpleWorkerErrorHandler<ServiceWorker> {
|
||||
#[allow(unrooted_must_root)]
|
||||
fn run(self: Box<Self>) {
|
||||
fn run_box(self: Box<Self>) {
|
||||
let this = *self;
|
||||
ServiceWorker::dispatch_simple_error(this.addr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue