From 8f05477eda52b1706ee63b75c0ebd73a4120929d Mon Sep 17 00:00:00 2001 From: Suguru Motegi Date: Wed, 9 Aug 2017 14:14:15 -0700 Subject: [PATCH] docs(delay): update jsdoc [ci skip] --- lib/aigle.js | 2 ++ lib/delay.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/aigle.js b/lib/aigle.js index bb3f4325..eabe2885 100644 --- a/lib/aigle.js +++ b/lib/aigle.js @@ -3078,6 +3078,8 @@ class Aigle extends AigleCore { } /** + * After a previous promise is resolved, the timer will be started with `ms`. + * After `ms`, the delay's promise will be resolved with the previous promise value. * @param {number} ms * @example * Aigle.resolve() diff --git a/lib/delay.js b/lib/delay.js index 8f9b00b9..f5b0b57d 100644 --- a/lib/delay.js +++ b/lib/delay.js @@ -25,6 +25,7 @@ class Delay extends Aigle { module.exports = { delay, Delay }; /** + * Return a promise which will be resolved with `value` after `ms`. * @param {number} ms * @param {*} value * @return {Aigle} Returns an Aigle instance