summaryrefslogtreecommitdiff
path: root/lib/retry.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/retry.js')
-rw-r--r--lib/retry.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/retry.js b/lib/retry.js
index 6a98b99..b137a0d 100644
--- a/lib/retry.js
+++ b/lib/retry.js
@@ -3,6 +3,9 @@ import noop from 'lodash/noop';
import constant from 'lodash/constant';
/**
+ * ```
+ * import retry from 'async/retry'
+ * ```
* Attempts to get a successful response from `task` no more than `times` times
* before returning an error. If the task is successful, the `callback` will be
* passed the result of the successful task. If all attempts fail, the callback
@@ -10,7 +13,7 @@ import constant from 'lodash/constant';
*
* @name retry
* @static
- * @memberOf module:async
+ * @memberOf module:ControlFlow
* @method
* @category Control Flow
* @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an