Added support for synchronization along with an unit test for cancellation listener

This commit is contained in:
Ravi Shankar 2015-11-07 20:44:12 +05:30
parent 10f5584f78
commit c4cf72db6e
3 changed files with 59 additions and 0 deletions

View file

@ -187,6 +187,9 @@ impl ResourceChannelManager {
}
self.resource_manager.cancel_load_map.remove(&res_id);
}
ControlMsg::Synchronize(sender) => {
let _ = sender.send(());
}
ControlMsg::Exit => break,
}
}