N-API provides a function for getting the current event loop associated with a specific napi_env.