Skip to content

Commit

Permalink
Merge pull request #1 from megawac/docs-jsdocs
Browse files Browse the repository at this point in the history
Genetate import path using jsdoc plugin
  • Loading branch information
Hubert Argasinski committed Jun 21, 2016
2 parents 3496d91 + 7e98f9c commit e10f748
Show file tree
Hide file tree
Showing 74 changed files with 19 additions and 217 deletions.
3 changes: 0 additions & 3 deletions lib/apply.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import rest from 'lodash/rest';

/**
* ```
* import apply from 'async/apply'
* ```
* Creates a continuation function with some arguments already applied.
*
* Useful as a shorthand when combined with other control flow functions. Any
Expand Down
3 changes: 0 additions & 3 deletions lib/applyEach.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import applyEach from './internal/applyEach';
import map from './map';

/**
* ```
* import applyEach from 'async/applyEach'
* ```
* Applies the provided arguments to each function in the array, calling
* `callback` after all functions have completed. If you only provide the first
* argument, then it will return a function which lets you pass in the
Expand Down
3 changes: 0 additions & 3 deletions lib/applyEachSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import applyEach from './internal/applyEach';
import mapSeries from './mapSeries';

/**
* ```
* import applyEachSeries from 'async/applyEachSeries'
* ```
* The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.
*
* @name applyEachSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/asyncify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import isObject from 'lodash/isObject';
import initialParams from './internal/initialParams';

/**
* ```
* import asyncify from 'async/asyncify'
* ```
* Take a sync function and make it async, passing its return value to a
* callback. This is useful for plugging sync functions into a waterfall,
* series, or other async functions. Any arguments passed to the generated
Expand Down
3 changes: 0 additions & 3 deletions lib/auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import rest from 'lodash/rest';
import onlyOnce from './internal/onlyOnce';

/**
* ```
* import auto from 'async/auto'
* ```
* Determines the best order for running the functions in `tasks`, based on
* their requirements. Each function can optionally depend on other functions
* being completed first, and each function is run as soon as its requirements
Expand Down
3 changes: 0 additions & 3 deletions lib/autoInject.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ function parseParams(func) {
}

/**
* ```
* import autoInject from 'async/autoInject'
* ```
* A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent
* tasks are specified as parameters to the function, after the usual callback
* parameter, with the parameter names matching the names of the tasks it
Expand Down
3 changes: 0 additions & 3 deletions lib/cargo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ import queue from './internal/queue';
*/

/**
* ```
* import cargo from 'async/cargo'
* ```
* Creates a `cargo` object with the specified payload. Tasks added to the
* cargo will be processed altogether (up to the `payload` limit). If the
* `worker` is in progress, the task is queued until it becomes available. Once
Expand Down
3 changes: 0 additions & 3 deletions lib/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import seq from './seq';
var reverse = Array.prototype.reverse;

/**
* ```
* import compose from 'async/compose'
* ```
* Creates a function which is a composition of the passed asynchronous
* functions. Each function consumes the return value of the function that
* follows. Composing functions `f()`, `g()`, and `h()` would produce the result
Expand Down
3 changes: 0 additions & 3 deletions lib/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import concat from './internal/concat';
import doParallel from './internal/doParallel';

/**
* ```
* import concat from 'async/concat'
* ```
* Applies `iteratee` to each item in `coll`, concatenating the results. Returns
* the concatenated list. The `iteratee`s are called in parallel, and the
* results are concatenated as they return. There is no guarantee that the
Expand Down
3 changes: 0 additions & 3 deletions lib/concatSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import concat from './internal/concat';
import doSeries from './internal/doSeries';

/**
* ```
* import concatSeries from 'async/concatSeries'
* ```
* The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
*
* @name concatSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import rest from 'lodash/rest';
import initialParams from './internal/initialParams';

/**
* ```
* import constant from 'async/constant'
* ```
* Returns a function that when called, calls-back with the values provided.
* Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to
* [`auto`]{@link module:ControlFlow.auto}.
Expand Down
3 changes: 0 additions & 3 deletions lib/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import eachOf from './eachOf';
import findGetResult from './internal/findGetResult';

/**
* ```
* import detect from 'async/detect'
* ```
* Returns the first value in `coll` that passes an async truth test. The
* `iteratee` is applied in parallel, meaning the first iteratee to return
* `true` will fire the detect `callback` with that result. That means the
Expand Down
3 changes: 0 additions & 3 deletions lib/detectLimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import eachOfLimit from './eachOfLimit';
import findGetResult from './internal/findGetResult';

/**
* ```
* import detectLimit from 'async/detectLimit'
* ```
* The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a
* time.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/detectSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import eachOfSeries from './eachOfSeries';
import findGetResult from './internal/findGetResult';

/**
* ```
* import detectSeries from 'async/detectSeries'
* ```
* The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.
*
* @name detectSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/dir.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import consoleFunc from './internal/consoleFunc';

/**
* ```
* import dir from 'async/dir'
* ```
* Logs the result of an `async` function to the `console` using `console.dir`
* to display the properties of the resulting object. Only works in Node.js or
* in browsers that support `console.dir` and `console.error` (such as FF and
Expand Down
3 changes: 0 additions & 3 deletions lib/doDuring.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import during from './during';

/**
* ```
* import doDuring from 'async/doDuring'
* ```
* The post-check version of [`during`]{@link module:ControlFlow.during}. To reflect the difference in
* the order of operations, the arguments `test` and `fn` are switched.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/doUntil.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import doWhilst from './doWhilst';

/**
* ```
* import doUtil from 'async/doUtil'
* ```
* Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the
* argument ordering differs from `until`.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/doWhilst.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import whilst from './whilst';

/**
* ```
* import doWhilst from 'async/doWhilst'
* ```
* The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in
* the order of operations, the arguments `test` and `fn` are switched.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/during.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import noop from 'lodash/noop';
import rest from 'lodash/rest';

/**
* ```
* import during from 'async/during'
* ```
* Like [`whilst`]{@link module:ControlFlow.whilst}, except the `test` is an asynchronous function that
* is passed a callback in the form of `function (err, truth)`. If error is
* passed to `test` or `fn`, the main callback is immediately called with the
Expand Down
3 changes: 0 additions & 3 deletions lib/each.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import eachLimit from './eachLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import each from 'async/each'
* ```
* Applies the function `iteratee` to each item in `coll`, in parallel.
* The `iteratee` is called with an item from the list, and a callback for when
* it has finished. If the `iteratee` passes an error to its `callback`, the
Expand Down
3 changes: 0 additions & 3 deletions lib/eachLimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import eachOfLimit from './internal/eachOfLimit';
import withoutIndex from './internal/withoutIndex';

/**
* ```
* import eachLimit from 'async/eachLimit'
* ```
* The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.
*
* @name eachLimit
Expand Down
3 changes: 0 additions & 3 deletions lib/eachOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import eachOfLimit from './eachOfLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import eachOf from 'async/eachOf'
* ```
* Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument
* to the iteratee.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/eachOfLimit.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import _eachOfLimit from './internal/eachOfLimit';

/**
* ```
* import eachOfLimit from 'async/eachOfLimit'
* ```
* The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a
* time.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/eachOfSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import eachOfLimit from './eachOfLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import eachOfSeries from 'async/eachOfSeries'
* ```
* The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.
*
* @name eachOfSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/eachSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import eachLimit from './eachLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import eachSeries from 'async/eachSeries'
* ```
* The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
*
* @name eachSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/ensureAsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import setImmediate from './internal/setImmediate';
import initialParams from './internal/initialParams';

/**
* ```
* import ensureAsync from 'async/ensureAsync'
* ```
* Wrap an async function and ensure it calls its callback on a later tick of
* the event loop. If the function already calls its callback on a next tick,
* no extra deferral is added. This is useful for preventing stack overflows
Expand Down
3 changes: 0 additions & 3 deletions lib/every.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import everyLimit from './everyLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import every from 'async/every'
* ```
* Returns `true` if every element in `coll` satisfies an async test. If any
* iteratee call returns `false`, the main `callback` is immediately called.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/everyLimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import eachOfLimit from './eachOfLimit';
import notId from './internal/notId';

/**
* ```
* import everyLimit from 'async/everyLimit'
* ```
* The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.
*
* @name everyLimit
Expand Down
3 changes: 0 additions & 3 deletions lib/everySeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import everyLimit from './everyLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import everySeries from 'async/everySeries'
* ```
* The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.
*
* @name everySeries
Expand Down
3 changes: 0 additions & 3 deletions lib/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import filterLimit from './filterLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import filter from 'async/filter'
* ```
* Returns a new array of all the values in `coll` which pass an async truth
* test. This operation is performed in parallel, but the results array will be
* in the same order as the original.
Expand Down
3 changes: 0 additions & 3 deletions lib/filterLimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import filter from './internal/filter';
import doParallelLimit from './internal/doParallelLimit';

/**
* ```
* import filterLimit from 'async/filterLimit'
* ```
* The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a
* time.
*
Expand Down
3 changes: 0 additions & 3 deletions lib/filterSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import filterLimit from './filterLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import filterSeries from 'async/filterSeries'
* ```
* The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.
*
* @name filterSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import onlyOnce from './internal/onlyOnce';
import ensureAsync from './ensureAsync';

/**
* ```
* import forever from 'async/forever'
* ```
* Calls the asynchronous function `fn` with a callback parameter that allows it
* to call itself again, in series, indefinitely.
Expand Down
3 changes: 0 additions & 3 deletions lib/iterator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/**
* ```
* import iterator from 'async/iterator'
* ```
* Creates an iterator function which calls the next function in the `tasks`
* array, returning a continuation to call the next one after that. It's also
* possible to “peek” at the next iterator with `iterator.next()`.
Expand Down
3 changes: 0 additions & 3 deletions lib/log.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import consoleFunc from './internal/consoleFunc';

/**
* ```
* import log from 'async/log'
* ```
* Logs the result of an `async` function to the `console`. Only works in
* Node.js or in browsers that support `console.log` and `console.error` (such
* as FF and Chrome). If multiple arguments are returned from the async
Expand Down
3 changes: 0 additions & 3 deletions lib/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import mapLimit from './mapLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import map from 'async/map'
* ```
* Produces a new collection of values by mapping each value in `coll` through
* the `iteratee` function. The `iteratee` is called with an item from `coll`
* and a callback for when it has finished processing. Each of these callback
Expand Down
3 changes: 0 additions & 3 deletions lib/mapLimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import doParallelLimit from './internal/doParallelLimit';
import map from './internal/map';

/**
* ```
* import mapLimit from 'async/mapLimit'
* ```
* The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.
*
* @name mapLimit
Expand Down
3 changes: 0 additions & 3 deletions lib/mapSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import mapLimit from './mapLimit';
import doLimit from './internal/doLimit';

/**
* ```
* import mapSeries from 'async/mapSeries'
* ```
* The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.
*
* @name mapSeries
Expand Down
3 changes: 0 additions & 3 deletions lib/mapValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import doLimit from './internal/doLimit';


/**
* ```
* import mapValues from 'async/mapValues'
* ```
* A relative of [`map`]{@link module:Collections.map}, designed for use with objects.
*
* Produces a new Object by mapping each value of `obj` through the `iteratee`
Expand Down
3 changes: 0 additions & 3 deletions lib/mapValuesLimit.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import eachOfLimit from './eachOfLimit';

/**
* ```
* import mapValuesLimit from 'async/mapValuesLimit'
* ```
* The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a
* time.
*
Expand Down
Loading

0 comments on commit e10f748

Please sign in to comment.