-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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 with confirmed bugs.Issues with confirmed bugs.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
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 with confirmed bugs.Issues with confirmed bugs.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, 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!