Пример #1
0
def wait_readwrite(fileno, timeout=None):
    if not timeout:
        timeout = 0
    server.trampoline(fileno, read=True, write=True, timeout=int(timeout))
Пример #2
0
 def _wait_read(self):
     trampoline(self._fd, True, False)
Пример #3
0
 def _wait_write(self):
     trampoline(self._fd, False, True)
Пример #4
0
def wait_readwrite(fileno, timeout=None):
    if not timeout:
        timeout = 0
    server.trampoline(fileno, read=True, write=True, timeout=int(timeout))
Пример #5
0
 def _wait_read(self):
     trampoline(self._fd, True, False)
Пример #6
0
 def _wait_write(self):
     trampoline(self._fd, False, True)