def __init__(self, *args, **kwargs): hub.BaseHub.__init__(self, *args, **kwargs) # Map file descriptors to coio.wakeup_info_event objects. self.wakeup_info = coio.wakeup_info() self.listeners_by_mode = [None, self.listeners[hub.READ], self.listeners[hub.WRITE]] # The dict maps file descriptors to coio.wakeup_info_event objects. self.events_by_mode = [None, {}, {}]
def __init__(self, *args, **kwargs): hub.BaseHub.__init__(self, *args, **kwargs) # Map file descriptors to coio.wakeup_info_event objects. self.wakeup_info = coio.wakeup_info() self.listeners_by_mode = [ None, self.listeners[hub.READ], self.listeners[hub.WRITE] ] # The dict maps file descriptors to coio.wakeup_info_event objects. self.events_by_mode = [None, {}, {}]
def __init__(self): self.wakeup_info = coio.wakeup_info() self.fd_to_event = {}