Method Name:
poll()
Method Signature:
poll([timeout])
Parameters:
timeout:
- Timeout is an optional parameter. It specifies the number of milliseconds to wait for events.
- The following values for timeout will make the poll() method to wait till a registered I/O event occurs: -1, None and not specified.
Method Description:
- When poll() is called on the poll object, it blocks for specified number of milliseconds waiting for I/O events that were registered through the register() method.
Return Value:
- A list of tuples with each tuple having a File Descriptor and the bitmask combination for the occurred Events.