@property
def channels(self) -> Mapping[(bytes, Channel)]:
    'Returns a read-only copy of channels.'
    with self.lock:
        return self._channels.copy()
Returns a read-only copy of channels.
@property
def channels(self) -> Mapping[(bytes, Channel)]:
    
    with self.lock:
        return self._channels.copy()