summaryrefslogtreecommitdiff
path: root/lib/whilst.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/whilst.js')
-rw-r--r--lib/whilst.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/whilst.js b/lib/whilst.js
index d6e6591..1cfb157 100644
--- a/lib/whilst.js
+++ b/lib/whilst.js
@@ -2,12 +2,15 @@ import noop from 'lodash/noop';
import rest from 'lodash/rest';
/**
+ * ```
+ * import whilst from 'async/whilst'
+ * ```
* Repeatedly call `fn`, while `test` returns `true`. Calls `callback` when
* stopped, or an error occurs.
*
* @name whilst
* @static
- * @memberOf module:async
+ * @memberOf module:ControlFlow
* @method
* @category Control Flow
* @param {Function} test - synchronous truth test to perform before each