mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
net: Use a thread for each AsyncResponseTarget
to avoid having to send
trait objects across process boundaries.
This commit is contained in:
parent
9c9d7dc93b
commit
44d13f7fd4
10 changed files with 78 additions and 31 deletions
|
@ -73,7 +73,7 @@ impl DocumentLoader {
|
|||
}
|
||||
|
||||
/// Create and initiate a new network request.
|
||||
pub fn load_async(&mut self, load: LoadType, listener: Box<AsyncResponseTarget + Send>) {
|
||||
pub fn load_async(&mut self, load: LoadType, listener: AsyncResponseTarget) {
|
||||
let pending = self.prepare_async_load(load);
|
||||
pending.load_async(listener)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue