def close(self):
        for fd in values(self._chan_to_sock):
            try:
                self.poller.unregister(fd)
            except (__HOLE__, ValueError):
                pass
        self._channels.clear()
        self._fd_to_chan.clear()
        self._chan_to_sock.clear()
dataset/ETHPy150Open celery/kombu/kombu/transport/redis.py/MultiChannelPoller.close