-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Description
The AsyncResource
API has been largely unchanged since its creation many majors ago, and AsyncLocalStorage
has been out in the wild for awhile now and has proven its utility. I think both should be considered for stable status at this point. The challenge I see is that they live in the async_hooks
module which has been marked as "experimental" at the top-level because the async_hooks
feature itself exposes internals thus many (myself included) were unwilling to accept it as a "stable" API.
What I suggest is that AsyncResource
and AsyncLocalStorage
be considered as stable in the next major. Due to the module being named after the one not stable feature, it may also be worth moving the two APIs out to new top-level modules, but I'll leave that last point for discussion.
How should we proceed in getting these two APIs to stable status?
cc @nodejs/diagnostics