docs: add session/multi
This commit is contained in:
parent
2bc45d4053
commit
aa2090c079
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in New Issue