mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -5,7 +5,7 @@
|
|||
use msg::constellation_msg::PipelineId;
|
||||
use script_runtime::{CommonScriptMsg, ScriptChan, ScriptThreadEventCategory};
|
||||
use task::{TaskCanceller, TaskOnce};
|
||||
use task_source::TaskSource;
|
||||
use task_source::{TaskSource, TaskSourceName};
|
||||
|
||||
#[derive(JSTraceable)]
|
||||
pub struct NetworkingTaskSource(pub Box<ScriptChan + Send + 'static>, pub PipelineId);
|
||||
|
@ -17,6 +17,8 @@ impl Clone for NetworkingTaskSource {
|
|||
}
|
||||
|
||||
impl TaskSource for NetworkingTaskSource {
|
||||
const NAME: TaskSourceName = TaskSourceName::Networking;
|
||||
|
||||
fn queue_with_canceller<T>(
|
||||
&self,
|
||||
task: T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue