// Addresses are all currently subscribed addresses.
// It returns all subscribed adresses.
Addresses are all currently subscribed addresses.
It returns all subscribed adresses.
// Addresses are all currently subscribed addresses . // It returns all subscribed adresses .
func (s *Subscription) Addresses() []string {
	addresses := make([]string, 0, len(s.addresses))
	s.mx.Lock()
	for address := range s.addresses {
		addresses = append(addresses, address)
	}
	s.mx.Unlock()
	sort.Strings(addresses)
	return addresses
}
func ( s * Subscription ) Addresses ( ) [ ] string { addresses := make ( [ ] string , 0 , len ( s . addresses ) ) s . mx . Lock ( ) for address := range s . addresses { addresses = append ( addresses , address ) } s . mx . Unlock ( ) sort . Strings ( addresses ) return addresses }
Addresses are all currently subscribed addresses.
Addresses are all currently subscribed addresses .