poll.unregister() method in Python

A file descriptor can be removed from tracking for I/O events using the poll.unregister() method.Modify() method can also be used to get the sequence of register() and unregister() invocations.

Poll Updated 18 Oct 2018 1 min read

Method Name

poll.unregister

Method Signature

poll.unregister(fileDescriptor)

Method Overview

  • Unregisters a file descriptor, which has been registered earlier with a poll object to poll for I/O events.
  • Using this register(), unregister() sequence on a poll object or using the modify() method, different combinations of I/O events can be polled for at different time points using the same poll object.