Package-level declarations
Types
This class creates stores that stay coherent through asynchronous operations.
The class AsyncResource
is designed to be extended by the embedder's async resources. Using this, users can easily trigger the lifetime events of their own resources.
Functions
Registers functions to be called for different lifetime events of each async operation.
The ID returned from executionAsyncId()
is related to execution timing, not causality (which is covered by triggerAsyncId()
):
Resource objects returned by executionAsyncResource()
are most often internal Node.js handle objects with undocumented APIs. Using any functions or properties on the object is likely to crash your application and should be avoided.
Promise contexts may not get valid triggerAsyncId
s by default. See the section on promise execution tracking.