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
|
@ -69,7 +69,7 @@ use std::thread;
|
|||
use style::thread_state;
|
||||
use swapper::Swapper;
|
||||
use swapper::swapper;
|
||||
use task::Task;
|
||||
use task::TaskBox;
|
||||
use uuid::Uuid;
|
||||
|
||||
// Magic numbers
|
||||
|
@ -647,7 +647,7 @@ impl WorkletThread {
|
|||
/// Run a task in the main script thread.
|
||||
fn run_in_script_thread<T>(&self, task: T)
|
||||
where
|
||||
T: Task + 'static,
|
||||
T: TaskBox + 'static,
|
||||
{
|
||||
let msg = CommonScriptMsg::Task(ScriptThreadEventCategory::WorkletEvent, box task);
|
||||
let msg = MainThreadScriptMsg::Common(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue