Skip to content

Commit

Permalink
Remove stale comment about Subscriptionid
Browse files Browse the repository at this point in the history
SubscriptionId was removed earlier this year, and, as far as I can tell, there isn't functionality to replace it.
  • Loading branch information
kyle-leonhard authored Jul 8, 2024
1 parent 65530fb commit 052a162
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions yrs/src/observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,11 @@ where

/// Subscription handle returned by [Observer::subscribe] methods, which will unsubscribe corresponding
/// callback when dropped.
///
/// If implicit callback unsubscribe on drop is undesired, this structure can be cast [into](Subscription::into)
/// [SubscriptionId] which is an identifier of the same subscription, which in turn must be used
/// manually via [Observer::unsubscribe] to perform usubscribe.
#[cfg(feature = "sync")]
pub type Subscription = Arc<dyn Drop + Send + Sync + 'static>;

/// Subscription handle returned by [Observer::subscribe] methods, which will unsubscribe corresponding
/// callback when dropped.
///
/// If implicit callback unsubscribe on drop is undesired, this structure can be cast [into](Subscription::into)
/// [SubscriptionId] which is an identifier of the same subscription, which in turn must be used
/// manually via [Observer::unsubscribe] to perform usubscribe.
#[cfg(not(feature = "sync"))]
pub type Subscription = Arc<dyn Drop + 'static>;

Expand Down

0 comments on commit 052a162

Please sign in to comment.