Avoid PendingAsyncLoad in fetch_async.

This commit is contained in:
Ms2ger 2016-10-04 11:17:05 +02:00
parent fc251384a7
commit 59689475af
4 changed files with 8 additions and 18 deletions

View file

@ -536,13 +536,6 @@ impl PendingAsyncLoad {
let consumer = LoadConsumer::Listener(listener);
self.core_resource_thread.send(CoreResourceMsg::Load(load_data, consumer, None)).unwrap();
}
/// Initiate the fetch associated with this pending load.
pub fn fetch_async(mut self, request: RequestInit, fetch_target: IpcSender<FetchResponseMsg>) {
self.guard.neuter();
self.core_resource_thread.send(CoreResourceMsg::Fetch(request, fetch_target)).unwrap();
}
}
/// Message sent in response to `Load`. Contains metadata, and a port