diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-16 02:09:26 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-16 15:43:26 +0200 |
commit | 56117d31856be46d7df417e659a4406305b4e258 (patch) | |
tree | c3a6b03f1bf9f3b9c8c1a2f67b0a8ac703f93d0a /components/script/script_runtime.rs | |
parent | 52a6f63608a25e0574fd43b69f404f79a9a6c28f (diff) | |
download | servo-56117d31856be46d7df417e659a4406305b4e258.tar.gz servo-56117d31856be46d7df417e659a4406305b4e258.zip |
Rename Runnable to Task
The changes are:
* `*Runnable` -> `*Task`;
* `RunnableMsg` -> `Task`;
* `RunnableWrapper` -> `TaskCanceller`;
* `MainThreadRunnable` -> `MainThreadTask`;
* `wrap_runnable` -> `wrap_task`;
* `get_runnable_wrapper` -> `task_canceller`;
* `handler` -> `run`;
* `main_thread_handler` -> `run_with_script_thread`.
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index d0473d2469c..b12649668e5 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -23,7 +23,7 @@ use js::panic::wrap_panic; use js::rust::Runtime; use microtask::{EnqueuedPromiseCallback, Microtask}; use profile_traits::mem::{Report, ReportKind, ReportsChan}; -use script_thread::{Runnable, STACK_ROOTS, trace_thread}; +use script_thread::{STACK_ROOTS, Task, trace_thread}; use servo_config::opts; use servo_config::prefs::PREFS; use std::cell::Cell; @@ -43,15 +43,15 @@ pub enum CommonScriptMsg { /// supplied channel. CollectReports(ReportsChan), /// Generic message that encapsulates event handling. - RunnableMsg(ScriptThreadEventCategory, Box<Runnable + Send>), + Task(ScriptThreadEventCategory, Box<Task + Send>), } impl fmt::Debug for CommonScriptMsg { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CommonScriptMsg::CollectReports(_) => write!(f, "CollectReports(...)"), - CommonScriptMsg::RunnableMsg(ref category, ref runnable) => { - f.debug_tuple("RunnableMsg").field(category).field(runnable).finish() + CommonScriptMsg::Task(ref category, ref task) => { + f.debug_tuple("Task").field(category).field(task).finish() }, } } |