diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-08-08 21:18:16 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-09-14 18:38:45 +0300 |
commit | 8c8c90b714756433b3333146a2893572b473dfd6 (patch) | |
tree | bb10f495f0bf76e50f2f144b8e657097463f0e3a /src/node_api.h | |
parent | a564c1eb20a6742a50dca283312d9881a8f1fca6 (diff) |
n-api: use AsyncResource for Work tracking
Enable combining N-API async work with async-hooks.
PR-URL: https://github.com/nodejs/node/pull/14697
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jason Ginchereau <jasongin@microsoft.com>
Reviewed-By: Michael Dawson <mhdawson@ibm.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r-- | src/node_api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_api.h b/src/node_api.h index 807595777dd..227f26a2ffb 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -524,6 +524,8 @@ NAPI_EXTERN napi_status napi_get_dataview_info(napi_env env, // Methods to manage simple async operations NAPI_EXTERN napi_status napi_create_async_work(napi_env env, + napi_value async_resource, + const char* async_resource_name, napi_async_execute_callback execute, napi_async_complete_callback complete, void* data, |