HasSubscription implements the [Client.HasSubscription] interface method.
(sub string)
| 216 | |
| 217 | // HasSubscription implements the [Client.HasSubscription] interface method. |
| 218 | func (c *DefaultClient) HasSubscription(sub string) bool { |
| 219 | c.mu.RLock() |
| 220 | defer c.mu.RUnlock() |
| 221 | |
| 222 | _, ok := c.subscriptions[sub] |
| 223 | |
| 224 | return ok |
| 225 | } |
| 226 | |
| 227 | // Get implements the [Client.Get] interface method. |
| 228 | func (c *DefaultClient) Get(key string) any { |
no outgoing calls