Skip to content

Commit

Permalink
n-api: Context for custom async operations
Browse files Browse the repository at this point in the history
 - Add napi_async_context opaque pointer type.
   (If needed, we could later add APIs for getting the async IDs
   out of this context.)
 - Add napi_async_init() and napi_async_destroy() APIs.
 - Add async_context parameter to napi_make_callback().
 - Add code and checks to test_make_callback to validate async context
   APIs by checking async hooks are called with correct context.
 - Update API documentation.

PR-URL: nodejs/node#15189
Fixes: nodejs/node#13254
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
jasongin authored and Stephen Belanger committed Sep 21, 2017
1 parent cfd1b74 commit 61ff9a8
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 61ff9a8

Please sign in to comment.