gevent.select
– Waiting for I/O completion¶select
(rlist, wlist, xlist, timeout=None)¶An implementation of select.select()
that blocks only the current greenlet.
Caution
xlist is ignored.
Changed in version 1.2a1: Raise a ValueError
if timeout is negative. This matches Python 3’s
behaviour (Python 2 would raise a select.error
). Previously gevent had
undefined behaviour.
Changed in version 1.2a1: Raise an exception if any of the file descriptors are invalid.
poll
¶Bases: object
An implementation of select.poll
that blocks only the current greenlet.
Caution
POLLPRI
data is not supported.
New in version 1.1b1.
poll
(timeout=None)¶poll the registered fds.
Changed in version 1.2a1: File descriptors that are closed are reported with POLLNVAL.
unregister
(fd)¶Unregister the fd.
Changed in version 1.2a1: Raise a KeyError if fd was not registered, like the standard library. Previously gevent did nothing.
Next page: Synchronization primitives