mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove AsyncResponseTarget.
This commit is contained in:
parent
fe3d512ea4
commit
4bbeecb99f
1 changed files with 0 additions and 13 deletions
|
@ -288,19 +288,6 @@ impl<T: FetchResponseListener> Action<T> for FetchResponseMsg {
|
|||
}
|
||||
}
|
||||
|
||||
/// A target for async networking events. Commonly used to dispatch a runnable event to another
|
||||
/// thread storing the wrapped closure for later execution.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct AsyncResponseTarget {
|
||||
pub sender: IpcSender<ResponseAction>,
|
||||
}
|
||||
|
||||
impl AsyncResponseTarget {
|
||||
pub fn invoke_with_listener(&self, action: ResponseAction) {
|
||||
self.sender.send(action).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
/// A wrapper for a network load that can either be channel or event-based.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum LoadConsumer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue