mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update ipc-channel and crossbeam-channel.
This commit is contained in:
parent
107a29121c
commit
3fd3c23e17
45 changed files with 362 additions and 168 deletions
|
@ -21,7 +21,7 @@ impl<T> IpcReceiver<T>
|
|||
where
|
||||
T: for<'de> Deserialize<'de> + Serialize,
|
||||
{
|
||||
pub fn recv(&self) -> Result<T, bincode::Error> {
|
||||
pub fn recv(&self) -> Result<T, ipc::IpcError> {
|
||||
time::profile(
|
||||
ProfilerCategory::IpcReceiver,
|
||||
None,
|
||||
|
@ -30,7 +30,7 @@ where
|
|||
)
|
||||
}
|
||||
|
||||
pub fn try_recv(&self) -> Result<T, bincode::Error> {
|
||||
pub fn try_recv(&self) -> Result<T, ipc::TryRecvError> {
|
||||
self.ipc_receiver.try_recv()
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ pub struct IpcBytesReceiver {
|
|||
}
|
||||
|
||||
impl IpcBytesReceiver {
|
||||
pub fn recv(&self) -> Result<Vec<u8>, bincode::Error> {
|
||||
pub fn recv(&self) -> Result<Vec<u8>, ipc::IpcError> {
|
||||
time::profile(
|
||||
ProfilerCategory::IpcBytesReceiver,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue