diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 09:59:52 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 10:07:29 +0200 |
commit | 52527d6f9dfaae13458059243d975f5336bdead4 (patch) | |
tree | a9f1b12f82b2aedbc3d4c46851f9b0d09c3e2576 /components/script/dom/bindings/refcounted.rs | |
parent | f088b708c93e0a131cbfccf5c9b3797018f1c4ee (diff) | |
download | servo-52527d6f9dfaae13458059243d975f5336bdead4.tar.gz servo-52527d6f9dfaae13458059243d975f5336bdead4.zip |
Rename Task to TaskBox
Diffstat (limited to 'components/script/dom/bindings/refcounted.rs')
-rw-r--r-- | components/script/dom/bindings/refcounted.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs index b449a984356..1f1f9c52722 100644 --- a/components/script/dom/bindings/refcounted.rs +++ b/components/script/dom/bindings/refcounted.rs @@ -40,7 +40,7 @@ use std::marker::PhantomData; use std::os; use std::rc::Rc; use std::sync::{Arc, Weak}; -use task::Task; +use task::TaskBox; #[allow(missing_docs)] // FIXME @@ -122,7 +122,7 @@ impl TrustedPromise { /// A task which will reject the promise. #[allow(unrooted_must_root)] - pub fn reject_task(self, error: Error) -> impl Task { + pub fn reject_task(self, error: Error) -> impl TaskBox { let this = self; task!(reject_promise: move || { debug!("Rejecting promise."); @@ -135,7 +135,7 @@ impl TrustedPromise { /// A task which will resolve the promise. #[allow(unrooted_must_root)] - pub fn resolve_task<T>(self, value: T) -> impl Task + pub fn resolve_task<T>(self, value: T) -> impl TaskBox where T: ToJSValConvertible + Send, { |