From aa2090c079b58b798d26f566187774d3d3c454b4 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Mon, 3 Dec 2018 23:28:01 +0100 Subject: [PATCH] docs: add session/multi --- src/backend/session/multi.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/session/multi.rs b/src/backend/session/multi.rs index 8fa57b3..4cd3fb7 100644 --- a/src/backend/session/multi.rs +++ b/src/backend/session/multi.rs @@ -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) { let observer = Arc::new(Mutex::new(HashMap::new()));