UNPKG

epoll

Version:

A low-level Node.js binding for the Linux epoll API

15 lines (11 loc) 469 B
'use strict'; /* * Make sure the process terminates when epoll is used and 'nothing' is * actually done. The epoll addon calls uv_ref and uv_unref to keep nodes * event loop alive. Here we make sure that the addon isn't keeping the event * loop alive unnecessarily long. If the process terminates, everything is ok. * If it hangs, there is a problem. */ const Epoll = require('../').Epoll; const epoll0 = new Epoll(_ => {}); const epoll1 = new Epoll(_ => {});