@map_side/uv-poll

1.0.1 • Public • Published

@map_side/uv-poll

It's UV_POLL_T for nodejs

It's an event emitter wrapper for libuv's UV_POLL_T struct.

const fd = fs.openSync('file')
const poll = new Poller(fd)
poll.on('readable', () => console.log(`fd ${fd} is now readable`))
poll.on('writable', () => console.log(`fd ${fd} is now writable`))
poll.on('disconnect', () => console.log(`fd ${fd} is now disconnect`)) // means not readable or writable

forked from reconbot/uv-poll

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @map_side/uv-poll

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.24 kB

Total Files

6

Last publish

Collaborators

  • map_side