mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Avoid PendingAsyncLoad in fetch_async.
This commit is contained in:
parent
fc251384a7
commit
59689475af
4 changed files with 8 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue