mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Split fn script_chan into 5 different task channel fn
This commit is contained in:
parent
368dd1dc53
commit
8d90034d29
11 changed files with 98 additions and 39 deletions
|
@ -360,10 +360,10 @@ impl FileReader {
|
|||
|
||||
let load_data = ReadMetaData::new(String::from(type_), label.map(String::from), function);
|
||||
|
||||
let fr = Trusted::new(global.get_cx(), self, global.script_chan());
|
||||
let fr = Trusted::new(global.get_cx(), self, global.file_reading_task_source());
|
||||
let gen_id = self.generation_id.get();
|
||||
|
||||
let script_chan = global.script_chan();
|
||||
let script_chan = global.file_reading_task_source();
|
||||
|
||||
spawn_named("file reader async operation".to_owned(), move || {
|
||||
perform_annotated_read_operation(gen_id, load_data, bytes, fr, script_chan)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue