Skip to content

Commit

Permalink
Add doc note about use of handle APIs being unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard committed Dec 19, 2019
1 parent 4788019 commit 01add3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ const server = createServer(function(req, res) {

`executionAsyncResource()` will return `null` during application bootstrap.

Resource objects returned by `executionAsyncResource()` are often internal
handle objects with undocumented APIs. Using any functions or properties
on the object is not recommended and may crash your application.

#### async_hooks.executionAsyncId()

<!-- YAML
Expand Down

0 comments on commit 01add3b

Please sign in to comment.