select.epoll.poll

epoll.poll([timeout=-1[, maxevents=-1]]) → [(fd, events), (...)]

Wait for events on the epoll file descriptor for a maximum time of timeout in seconds (as float). -1 makes poll wait indefinitely. Up to maxevents are returned to the caller.