Skip to content

Commit

Permalink
doc: simplify async_hooks overview
Browse files Browse the repository at this point in the history
Explain the purpose of async_hooks simply in the overview.

PR-URL: #31660
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott committed Feb 8, 2020
1 parent 7a63d76 commit 7cbec42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

> Stability: 1 - Experimental
The `async_hooks` module provides an API to register callbacks tracking the
lifetime of asynchronous resources created inside a Node.js application.
It can be accessed using:
The `async_hooks` module provides an API to track asynchronous resources. It
can be accessed using:

```js
const async_hooks = require('async_hooks');
Expand Down

0 comments on commit 7cbec42

Please sign in to comment.