Skip to content

Commit ddeafaa

Browse files
authored
Document callback drop on subscriber undeclaration (#1590)
1 parent 361773b commit ddeafaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zenoh/src/api/subscriber.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ impl<Handler> Subscriber<Handler> {
189189

190190
/// Undeclare the [`Subscriber`].
191191
///
192+
/// This subscriber's [`crate::handlers::Callback`] will be dropped as part of the
193+
/// undeclaration.
194+
///
192195
/// # Examples
193196
/// ```
194197
/// # #[tokio::main]

0 commit comments

Comments
 (0)