def __init__(self, settings=None, handlers=None): self.epoll = select.epoll() self._handlers = {} self._unprepared_handlers = {} self._timeout = None self._exists_fd = {} self.logger = get_logger() MainLoopBase.__init__(self, settings, handlers) return
def __init__(self, settings=None, handlers=None, io_loop=None): self._handlers = {} self._unprepared_handlers = {} self.io_loop = io_loop or ioloop.IOLoop.instance() MainLoopBase.__init__(self, settings, handlers)
def __init__(self, settings = None, handlers = None, io_loop=None): self._handlers = {} self._unprepared_handlers = {} self.io_loop = io_loop or ioloop.IOLoop.instance() MainLoopBase.__init__(self, settings, handlers)