get-uv-event-loop-napi-h
C function to get the current libuv event loop for N-API
Installation
Install with npm:
$ npm install get-uv-event-loop-napi-h
Usage
In your binding.gyp:
'include_dirs': ,(Just have "<!@(node -p \"require('get-uv-event-loop-napi-h').include\")" somewhere in that list, ok?)
In your C code:
uv_loop_t* loop = get_uv_event_loop(env);