Poller

Poller

Polls unix systems for readable or writable states of a file or serialport

Constructor

new Poller()

Source:

Methods

once(Event, callback)

Source:

Wait for the next event to occur

Parameters:
Name Type Description
Event string

('readable'|'writable'|'disconnect')

callback function

poll(eventFlag)

Source:

Ask the bindings to listen for an event

Parameters:
Name Type Description
eventFlag EVENTS

stop()

Source:

Stop listening for events and cancel all outstanding listening with an error