Skip to content

Commit 2f49720

Browse files
cjihrignodejs-github-bot
authored andcommitted
doc: add version metadata to timers/promises
Refs: #33950 PR-URL: #36378 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent 20de5f7 commit 2f49720

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/timers.md

+9
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ added: v0.0.1
321321
Cancels a `Timeout` object created by [`setTimeout()`][].
322322

323323
## Timers Promises API
324+
<!-- YAML
325+
added: v15.0.0
326+
-->
324327

325328
> Stability: 1 - Experimental
326329
@@ -333,6 +336,9 @@ const timersPromises = require('timers/promises');
333336
```
334337

335338
### `timersPromises.setTimeout([delay[, value[, options]]])`
339+
<!-- YAML
340+
added: v15.0.0
341+
-->
336342

337343
* `delay` {number} The number of milliseconds to wait before resolving the
338344
`Promise`. **Default**: `1`.
@@ -345,6 +351,9 @@ const timersPromises = require('timers/promises');
345351
cancel the scheduled `Timeout`.
346352

347353
### `timersPromises.setImmediate([value[, options]])`
354+
<!-- YAML
355+
added: v15.0.0
356+
-->
348357

349358
* `value` {any} A value with which the `Promise` is resolved.
350359
* `options` {Object}

0 commit comments

Comments
 (0)