def idle(self, now):
        if not hasattr(self, 'queue_timeout'):
            self.queue_timeout = IDLE_EVENT_QUEUE_TIMEOUT_SECS

        return (self.current_handler_id is None
                and now - self.last_connection_time >= self.queue_timeout)
dataset/ETHPy150Open zulip/zulip/zerver/lib/event_queue.py/ClientDescriptor.idle/original