Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Questions: will nodejs expose SetPromiseHook of V8 as javascript API in the future? #13139

Description

@JiaLiPassion
  • Version:
  • Platform:
  • Subsystem:

in the newest nodejs,

  1. the async_wrap and async_hooks have been implemented in async_hooks initial implementation #11883.
  2. addPromiseHook have been exposed in domain: support promises #12489

I want to ask that will addPromiseHook be exposed as Javascript API? Or it will also use the async_wrap to intercept the promise lifecycle?

The reason I asked is I want to implement an async_hooks version zone.js to resolve the
native async/await issue. currently native async/await of nodejs use native v8 promise and can't be tracked by javascript module.

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.promisesIssues and PRs related to ECMAScript promises.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions