From d095670739f3e7fe1fa292801fe40f24999b75a0 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Tue, 12 Nov 2024 11:09:37 +0000 Subject: [PATCH] Document callback drop on subscriber undeclaration --- zenoh/src/api/subscriber.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zenoh/src/api/subscriber.rs b/zenoh/src/api/subscriber.rs index 099a1d174a..75d9ab5fb9 100644 --- a/zenoh/src/api/subscriber.rs +++ b/zenoh/src/api/subscriber.rs @@ -189,6 +189,9 @@ impl Subscriber { /// Undeclare the [`Subscriber`]. /// + /// This subscriber's [`crate::handlers::Callback`] will be dropped as part of the + /// undeclaration. + /// /// # Examples /// ``` /// # #[tokio::main]