# Method System.Inotify._Instance()->poll()

Method poll

  ``void` poll()`

Description

  Check for any pending events.

  Any pending events will be read and parsed, and event_callback will be called once for each event. The arguments to the event_callback will be:

  Array
  ``int` `1`` | The watch descriptor that was triggered.
  ``int` `2`` | The event that was triggerend (one of `IN_*`).
  ``int` `3`` | An integer cookie used to identify grouped events.
  ``string` `4`` | The name of the path segment (if any).

Note

  This function is called by the backend when there are events pending.

See also

  set_event_callback()