pub fn cancel(&self, id: SubscriptionId) -> bool {
		if let SubscriptionId::Number(id) = id {
			if let Some(tx) = self.active_subscriptions.lock().remove(&id) {
				let _ = tx.send(());
				return true;
			}
		}
		false
	}
/// Cancel subscription.
///
/// Returns true if subscription existed or false otherwise.
Cancel subscription.
Returns true if subscription existed or false otherwise.
Cancel subscription . Returns true if subscription existed or false otherwise .
pub fn cancel(&self, id: SubscriptionId) -> bool {
		if let SubscriptionId::Number(id) = id {
			if let Some(tx) = self.active_subscriptions.lock().remove(&id) {
				let _ = tx.send(());
				return true;
			}
		}
		false
	}
pub fn cancel ( & self , id : SubscriptionId ) -> bool { if let SubscriptionId :: Number ( id ) = id { if let Some ( tx ) = self . active_subscriptions . lock ( ) . remove ( & id ) { let _ = tx . send ( ( ) ) ; return true ; } } false }
Cancel subscription.
Cancel subscription .
&self
id
SubscriptionId
&self
id
SubscriptionId