**Missing Handle context** - [x] TCPwrap created from server (issue: https://github.com/nodejs/node/issues/2986, PR: https://github.com/nodejs/node/pull/3216) - [x] HTTP sockets `parserOnBody` - issues: https://github.com/nodejs/node/issues/3241, https://github.com/nodejs/node/issues/4416 - PR: https://github.com/nodejs/node/pull/5419 and https://github.com/nodejs/node/pull/5591, ~~depends on: https://github.com/nodejs/node/pull/4507~~ - [x] Promises or Microtask in general - ~~node issue: https://github.com/nodejs/promises/issues/9~~ - ~~v8 issue: https://bugs.chromium.org/p/v8/issues/detail?id=4643~~ - PR: nodejs/node#13000 - additional PRs: https://github.com/nodejs/node/pull/13242, https://github.com/nodejs/node/pull/13224 - [x] nextTick (old issue: https://github.com/nodejs/node/issues/666, PR: https://github.com/nodejs/node/pull/12892) - [x] setTimeout, setInterval, setImmediate - old issue: https://github.com/nodejs/node/issues/666, https://github.com/nodejs/node/pull/12892 - PR: nodejs/node#12892 - [ ] `exit` and `beforeExit` has no context - ref: https://github.com/nodejs/node/pull/13142#pullrequestreview-40577964 - issue: none - PR: none - [x] `emitDestroy` doesn't emit `destroy` upon process termination (issue: https://github.com/nodejs/node/issues/13262, PR: https://github.com/nodejs/node/pull/13286) - [x] addon modules integration with AsyncWrap (EP: https://github.com/nodejs/node-eps/pull/18, PR: https://github.com/nodejs/node/pull/13142) - [ ] N-API addon modules integration with AsyncWrap (issue: https://github.com/nodejs/node/issues/13254, PR: none) - [ ] NAN-API addon modules integration with AsyncWrap (issue: https://github.com/nodejs/node/issues/13254, PR: none) **More events** - [x] ~~onready (issue: https://github.com/nodejs/tracing-wg/issues/11) - unlikely to be solved~~. As of now, not part of `async_hooks` API. - Some debate regarding promises: https://github.com/nodejs/node/pull/13000#discussion_r116296676 - [x] ~~onerror (issue: https://github.com/nodejs/node/issues/669, https://github.com/nodejs/tracing-wg/issues/7) - awaiting use cases~~. As of now, not part of `async_hooks` API. - [x] ondestructor (PR: https://github.com/nodejs/node/pull/3461) **API** - [x] `process.binding` is being deprecated by https://github.com/nodejs/node/pull/2768 (issue: missing, PR: https://github.com/nodejs/node/pull/12892) - [x] support multiple independent `setupHooks` calls. (issue: https://github.com/nodejs/tracing-wg/issues/40, PR: https://github.com/nodejs/node/pull/12892) - [x] async wrap hook error handling (PR: https://github.com/nodejs/node/pull/5756) - [x] add exception throw flag to post hook (PR: https://github.com/nodejs/node/pull/5756) - [x] add parent handle to init callback (PR: https://github.com/nodejs/node/pull/3216) - [x] add unique id (PR: https://github.com/nodejs/node/pull/3461) - [x] add unique id to all hooks: (PR: https://github.com/nodejs/node/pull/4600) - [x] unique ids should be a double, int32 is not enough. (PR: https://github.com/nodejs/node/pull/7096) **Documentation** - [x] intial documentation (PR: https://github.com/nodejs/tracing-wg/pull/27) - [x] document unique id (PR: https://github.com/nodejs/tracing-wg/pull/37) - [x] document ondestructor (PR: https://github.com/nodejs/tracing-wg/pull/37) - [x] document unique id on all hooks (PR: https://github.com/nodejs/tracing-wg/pull/39) - [x] document public JS `async_hooks` API. (PR: https://github.com/nodejs/node/pull/13287) - [ ] document public C++ Embedder API – is the header file sufficient? (PR: none) --- If something is missing just edit this. But add a comment so we can keep the history.
Missing Handle context
parserOnBodyMakeCallbacknode#5419 and src,http: fix uncaughtException miss in http node#5591,depends on: src: fix MakeCallback error handling node#4507node issue: AsyncWrap promises#9v8 issue: https://bugs.chromium.org/p/v8/issues/detail?id=4643exitandbeforeExithas no contextemitDestroydoesn't emitdestroyupon process termination (issue: Questions: async_hooks destroy callback vs setImmediate node#13262, PR: async_hooks: run destroy callbacks before normal exit node#13286)More events
onready (issue: async_wrap: when is callback ready to be called #11) - unlikely to be solved. As of now, not part ofasync_hooksAPI.onerror (issue: async-wrap: no way to catch errors without changing the throw origin node#669, async_wrap: error handling #7) - awaiting use cases. As of now, not part ofasync_hooksAPI.API
process.bindingis being deprecated by node: deprecate public access toprocess.bindingnode#2768 (issue: missing, PR: Async Hooks - Initial Implementation node#12892)setupHookscalls. (issue: Multiple users of asyncWrap in a single application? #40, PR: Async Hooks - Initial Implementation node#12892)Documentation
async_hooksAPI. (PR: docs: documenting async hooks features node#13287)If something is missing just edit this. But add a comment so we can keep the history.