Introduce GlobalScope::get_runnable_wrapper

This commit is contained in:
Anthony Ramine 2016-10-04 15:36:20 +02:00
parent ca8c6fb072
commit 514819f37a
4 changed files with 16 additions and 13 deletions

View file

@ -354,7 +354,7 @@ impl FileReader {
let fr = Trusted::new(self);
let gen_id = self.generation_id.get();
let wrapper = self.global().r().get_runnable_wrapper();
let wrapper = self.global_scope().get_runnable_wrapper();
let task_source = self.global().r().file_reading_task_source();
spawn_named("file reader async operation".to_owned(), move || {