Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,16 @@ Edge and Level Trigger Polling (epoll) Objects

.. method:: epoll.poll(timeout=None, maxevents=-1)

Wait for events.
Wait for events. Return a list of ``(fd, eventmask)`` tuples if there's any
event. Otherwise, an empty list is returned. See the :ref:`epoll-objects`
section above for the event constants.

If *timeout* is given, it specifies the length of time in seconds
(may be non-integer) which the system will wait for events before returning.

*maxevents* specifies the maximum number of events to return. It must be
greater than 0, or ``-1`` to use the default (``FD_SETSIZE-1``).

.. versionchanged:: 3.5
The function is now retried with a recomputed timeout when interrupted by
a signal, except if the signal handler raises an exception (see
Expand Down
Loading