Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fdb127

Browse filesBrowse files
galkinBethGriggs
authored andcommitted
doc: add timeout.close
PR-URL: #40036 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent effdfa9 commit 7fdb127
Copy full SHA for 7fdb127

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/timers.md‎

Copy file name to clipboardExpand all lines: doc/api/timers.md
+11Lines changed: 11 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ timer is active. Each of the `Timeout` objects returned by these functions
7272
export both `timeout.ref()` and `timeout.unref()` functions that can be used to
7373
control this default behavior.
7474

75+
### `timeout.close()`
76+
<!-- YAML
77+
added: v0.9.1
78+
-->
79+
80+
> Stability: 3 - Legacy: Use [`clearTimeout()`][] instead.
81+
82+
* Returns: {Timeout} a reference to `timeout`
83+
84+
Cancels the timeout.
85+
7586
### `timeout.hasRef()`
7687
<!-- YAML
7788
added: v11.0.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.