SubChans returns a copy of the map of sub-channels associated with the Channel.
()
| 68 | // SubChans returns a copy of the map of sub-channels associated with the |
| 69 | // Channel. |
| 70 | func (c *Channel) SubChans() map[int64]string { |
| 71 | db.mu.RLock() |
| 72 | defer db.mu.RUnlock() |
| 73 | return copyMap(c.subChans) |
| 74 | } |
| 75 | |
| 76 | // NestedChans returns a copy of the map of nested channels associated with the |
| 77 | // Channel. |