Skip to content

Commit

Permalink
docs: add session/multi
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Dec 3, 2018
1 parent bbec71c commit cd2de8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/session/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ impl SessionNotifier for MultiNotifier {
}
}

/// Create a pair of a linked [`SessionObserver`](../trait.SessionObserver.html) and a
/// [`SessionNotifier`](../trait.SessionNotifier.html).
///
/// Observers added to the returned notifier are notified,
/// when the returned observer is notified.
pub fn notify_multiplexer() -> (impl SessionObserver, impl SessionNotifier<Id = Id>) {
let observer = Arc::new(Mutex::new(HashMap::new()));

Expand Down

0 comments on commit cd2de8a

Please sign in to comment.