Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! doc fixup
  • Loading branch information
debadree25 committed Feb 4, 2023
commit f3621fd12db26eb4c40d4d348dce0d00a3b5b284
6 changes: 4 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2002,8 +2002,10 @@ added: REPLACEME
* Returns: {Promise}

Listens to abort event on the provided `signal` and returns a promise which is
resolved if an abort event is triggered. The function cleans up any
event listeners depending on when the provided `resource` is garbage collected.
resolved if an abort event is triggered. The function is dependent on the `resource`
entity and will be resolved only if the `resource` is not removed from memory, when
`resource` goes out of memory the promise shall remain pending and any event listeners
attached to the `signal` will be removed.

```js
Comment thread
debadree25 marked this conversation as resolved.
Outdated
const { aborted } = require('util');
Comment thread
debadree25 marked this conversation as resolved.
Outdated
Expand Down