diff options
Diffstat (limited to 'lib/nextTick.js')
-rw-r--r-- | lib/nextTick.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/nextTick.js b/lib/nextTick.js index f6c9fca..1959c84 100644 --- a/lib/nextTick.js +++ b/lib/nextTick.js @@ -3,6 +3,9 @@ import { hasNextTick, hasSetImmediate, fallback, wrap } from './internal/setImmediate'; /** + * ``` + * import nextTick from 'async/nextTick' + * ``` * Calls `callback` on a later loop around the event loop. In Node.js this just * calls `setImmediate`. In the browser it will use `setImmediate` if * available, otherwise `setTimeout(callback, 0)`, which means other higher @@ -12,7 +15,7 @@ import { hasNextTick, hasSetImmediate, fallback, wrap } from './internal/setImm * * @name nextTick * @static - * @memberOf module:async + * @memberOf module:Utils * @method * @alias setImmediate * @category Util |