Open
Description
The PR #16222, contains the first step by @vdeturckheim to remove domain
from the deep layers of nodecore and implement it on top of async_hooks
. This PR just landed, thus I'm opening this issue to discuss the next steps.
- Deprecate and remove
.domain
support fromMakeCallback
. Implementers should useasync_context
. What will our depreciation and removal strategy for this be? Note: we would like to ultimately remove this as it adds quite a bit of extra complexity.- Deprecate
.domain
support fromMakeCallback
(PR: domain: runtime deprecate MakeCallback #17417) - Remove
.domain
support fromMakeCallback
- Deprecate
- Remove special domain code in exception handling.
It is unclear what the migration strategy for this is.(PR: process: add capture function for uncaught exceptions #17159) - Remove domain integration in events. (PR: events: remove domain handling from events to domain #17403, PR: domain: fix error emit handling #17588)
- Check for leftovers. Examples:
- Track context with
async_hooks
(PR: domain: re-implement domain over async_hook #16222)