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 authored and codebytere committed Mar 17, 2020
1 parent 641183f commit 8f8fd4d
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 8f8fd4d

Please sign in to comment.