From 2649c384c6fe7b2ae8496896f7b1e6af7ed39a0c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 3 Dec 2020 22:21:52 -0500 Subject: [PATCH] doc: add version metadata to timers/promises Refs: https://github.com/nodejs/node/pull/33950 PR-URL: https://github.com/nodejs/node/pull/36378 Reviewed-By: Antoine du Hamel Reviewed-By: Beth Griggs Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Daijiro Wachi --- doc/api/timers.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/timers.md b/doc/api/timers.md index cf91e36b94e1f2..108c102db51383 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -321,6 +321,9 @@ added: v0.0.1 Cancels a `Timeout` object created by [`setTimeout()`][]. ## Timers Promises API + > Stability: 1 - Experimental @@ -333,6 +336,9 @@ const timersPromises = require('timers/promises'); ``` ### `timersPromises.setTimeout([delay[, value[, options]]])` + * `delay` {number} The number of milliseconds to wait before resolving the `Promise`. **Default**: `1`. @@ -345,6 +351,9 @@ const timersPromises = require('timers/promises'); cancel the scheduled `Timeout`. ### `timersPromises.setImmediate([value[, options]])` + * `value` {any} A value with which the `Promise` is resolved. * `options` {Object}