mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
introduce "per task source" ignoring of tasks
This commit is contained in:
parent
ce430566cd
commit
671627e97e
21 changed files with 127 additions and 34 deletions
|
@ -8,7 +8,7 @@ use msg::constellation_msg::PipelineId;
|
|||
use script_runtime::{CommonScriptMsg, ScriptThreadEventCategory, ScriptChan};
|
||||
use std::sync::Arc;
|
||||
use task::{TaskCanceller, TaskOnce};
|
||||
use task_source::TaskSource;
|
||||
use task_source::{TaskSource, TaskSourceName};
|
||||
|
||||
#[derive(JSTraceable)]
|
||||
pub struct FileReadingTaskSource(pub Box<ScriptChan + Send + 'static>, pub PipelineId);
|
||||
|
@ -20,6 +20,8 @@ impl Clone for FileReadingTaskSource {
|
|||
}
|
||||
|
||||
impl TaskSource for FileReadingTaskSource {
|
||||
const NAME: TaskSourceName = TaskSourceName::FileReading;
|
||||
|
||||
fn queue_with_canceller<T>(
|
||||
&self,
|
||||
task: T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue