-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Questions: async_hooks destroy callback vs setImmediate #13262
Copy link
Copy link
Closed
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
Description
Activity
Metadata
Metadata
Assignees
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
Version:
v8.0.0-nightly20170527f84666f923
Platform:
Mac OS
Subsystem:
I just tried the new
async_hookscallback API, I want to confirm the behaviors below is correct or not?It is just a simple
setImmediateand it was clear byclearImmediate.I expect the result will be
but the result is
only.
If I add some other
setTimeoutlogic in the test program, thedestroywill be called.the result will look like
Is this the correct behaviors? And how to ensure the
destroycallback is called ?Thanks a lot!