diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-26 16:38:22 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-10 20:53:10 +0530 |
commit | b5255f011e66615e9c6c6a461fe200b11d62ccf2 (patch) | |
tree | f47e5b47fd0300be5c213a2a2bfbdd96284c1ce8 /components/net_traits/response.rs | |
parent | 96f34049286076c20ff91b260eb6a9651c0eecd6 (diff) | |
download | servo-b5255f011e66615e9c6c6a461fe200b11d62ccf2.tar.gz servo-b5255f011e66615e9c6c6a461fe200b11d62ccf2.zip |
Revamp Fetch async handling to use a fetch target and done channels
Diffstat (limited to 'components/net_traits/response.rs')
-rw-r--r-- | components/net_traits/response.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/components/net_traits/response.rs b/components/net_traits/response.rs index d107e219988..84826fed2b1 100644 --- a/components/net_traits/response.rs +++ b/components/net_traits/response.rs @@ -132,18 +132,6 @@ impl Response { } } - pub fn wait_until_done(&self) { - match self.response_type { - // since these response types can't hold a body, they should be considered done - ResponseType::Error | ResponseType::Opaque | ResponseType::OpaqueRedirect => {}, - _ => { - while !self.body.lock().unwrap().is_done() && !self.is_network_error() { - // loop until done - } - } - } - } - pub fn actual_response(&self) -> &Response { if self.return_internal.get() && self.internal_response.is_some() { &**self.internal_response.as_ref().unwrap() |