Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ impl RouterProxy {

/// Add a new (receiver, callback) pair to the router, and send a wakeup message
/// to the router.
///
/// The `callback` is dropped when `receiver`'s channel disconnects.
fn add_route(&self, receiver: OpaqueIpcReceiver, callback: RouterHandler) {
let comm = self.comm.lock().unwrap();

Expand All @@ -83,6 +85,8 @@ impl RouterProxy {

/// Add a new `(receiver, callback)` pair to the router, and send a wakeup message
/// to the router.
///
/// The `callback` is dropped when `receiver`'s channel disconnects.
pub fn add_typed_route<T>(
&self,
receiver: IpcReceiver<T>,
Expand Down