Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Browse Node-APIshow

napi_get_uv_event_loop

typev2node_api.h

Note: While libuv only guarantees ABI stability in a major version, its use may result in an addon that does not work across Node.js major versions.

NAPI_EXTERN napi_status napi_get_uv_event_loop(node_api_basic_env env,
                                               struct uv_loop_s** loop);
  • [in] env: The environment that the API is invoked under.
  • [out] loop: The current libuv loop instance.

Note: While libuv only guarantees ABI stability in a major version, its use may result in an addon that does not work across Node.js major versions.

ThreadSafeFunction is an ABI-stable alternative for many use cases to calling into the JavaScript thread from another thread.

View in the official Node.js documentation