We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effdfa9 commit 7fdb127Copy full SHA for 7fdb127
doc/api/timers.md
@@ -72,6 +72,17 @@ timer is active. Each of the `Timeout` objects returned by these functions
72
export both `timeout.ref()` and `timeout.unref()` functions that can be used to
73
control this default behavior.
74
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
86
### `timeout.hasRef()`
87
<!-- YAML
88
added: v11.0.0
0 commit comments