Sha256: 098628bcb7d190fada5b915a81e802336c41a702e27d2b156f9fee9752512c1c

Contents?: true

Size: 1.34 KB

Versions: 48

Compression:

Stored size: 1.34 KB

Contents

'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = doUntil;

var _doWhilst = require('./doWhilst');

var _doWhilst2 = _interopRequireDefault(_doWhilst);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the
 * argument ordering differs from `until`.
 *
 * @name doUntil
 * @static
 * @memberOf module:ControlFlow
 * @method
 * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}
 * @category Control Flow
 * @param {AsyncFunction} iteratee - An async function which is called each time
 * `test` fails. Invoked with (callback).
 * @param {Function} test - synchronous truth test to perform after each
 * execution of `iteratee`. Invoked with any non-error callback results of
 * `iteratee`.
 * @param {Function} [callback] - A callback which is called after the test
 * function has passed and repeated execution of `iteratee` has stopped. `callback`
 * will be passed an error and any arguments passed to the final `iteratee`'s
 * callback. Invoked with (err, [results]);
 */
function doUntil(iteratee, test, callback) {
    (0, _doWhilst2.default)(iteratee, function () {
        return !test.apply(this, arguments);
    }, callback);
}
module.exports = exports['default'];

Version data entries

48 entries across 46 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/async/doUntil.js
disco_app-0.18.0 test/dummy/node_modules/async/doUntil.js
disco_app-0.18.2 test/dummy/node_modules/async/doUntil.js
disco_app-0.16.1 test/dummy/node_modules/async/doUntil.js
disco_app-0.15.2 test/dummy/node_modules/async/doUntil.js
disco_app-0.18.4 test/dummy/node_modules/async/doUntil.js
disco_app-0.18.1 test/dummy/node_modules/async/doUntil.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/async/doUntil.js
disco_app-0.14.0 test/dummy/node_modules/async/doUntil.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/async/doUntil.js
tang-0.2.1 spec/tang_app/node_modules/async/doUntil.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/async/doUntil.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/async/doUntil.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/async/doUntil.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/async/doUntil.js
tang-0.2.0 spec/tang_app/node_modules/async/doUntil.js
tang-0.1.0 spec/tang_app/node_modules/async/doUntil.js
tang-0.0.9 spec/tang_app/node_modules/async/doUntil.js
enju_library-0.3.8 spec/dummy/node_modules/async/doUntil.js
ilog-0.4.1 node_modules/async/doUntil.js