Methods
once(event) → {Poller}
Wait for the next event to occur
Parameters:
Name | Type | Description |
---|---|---|
event |
string | ('readable'|'writable'|'disconnect') |
- Source:
Returns:
returns itself
- Type
- Poller
poll(eventFlag) → {undefined}
Ask the bindings to listen for an event, it is recommend to use .once()
for easy use
Parameters:
Name | Type | Description |
---|---|---|
eventFlag |
EVENTS | polls for an event or group of events based upon a flag. |
- Source:
Returns:
- Type
- undefined
stop() → {undefined}
Stop listening for events and cancel all outstanding listening with an error
- Source:
Returns:
- Type
- undefined