repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/support/jsdoc/jsdoc-custom.js
support/jsdoc/jsdoc-custom.js
/* eslint no-undef: "off" */ if (typeof setImmediate !== 'function' && typeof async === 'object') { window.setImmediate = async.setImmediate; } $(() => { function matchSubstrs(methodName) { var tokens = []; var len = methodName.length; for (var size = 1; size <= len; size++){ ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/support/jsdoc/theme/publish.js
support/jsdoc/theme/publish.js
/*global env: true */ 'use strict'; const doop = require('jsdoc/util/doop'); const fs = require('jsdoc/fs'); // jsdoc/fs offer non-standard functions (mkPath) const fsExtra = require('fs-extra'); const helper = require('jsdoc/util/templateHelper'); const logger = require('jsdoc/util/logger'); const path = require('jsd...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/support/jsdoc/theme/static/scripts/linenumber.js
support/jsdoc/theme/static/scripts/linenumber.js
/*global document */ (function() { var source = document.getElementsByClassName('prettyprint source linenums'); var i = 0; var lineNumber = 0; var lineId; var lines; var totalLines; var anchorHash; if (source && source[0]) { anchorHash = document.location.hash.substring(1); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/support/jsdoc/theme/static/scripts/prettify/prettify.js
support/jsdoc/theme/static/scripts/prettify/prettify.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/support/jsdoc/theme/static/scripts/prettify/lang-css.js
support/jsdoc/theme/static/scripts/prettify/lang-css.js
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/memoize.js
test/memoize.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe("memoize", () => { it('memoize', (done) => { var call_order = []; var fn = function (arg1, arg2, callback) { async.setImmediate(() => { call_order.push(['fn', arg1, ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/reduce.js
test/reduce.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('reduce', () => { it('reduce', (done) => { var call_order = []; async.reduce([1,2,3], 0, (a, x, callback) => { call_order.push(x); callback(null, a + x); }, (err,...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/nextTick.js
test/nextTick.js
var async = require('../lib'); var {expect} = require('chai'); describe("nextTick", () => { it('basics', (done) => { var call_order = []; async.nextTick(() => {call_order.push('two');}); call_order.push('one'); setTimeout(() => { expect(call_order).to.eql(['one','two'])...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/series.js
test/series.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); var getFunctionsObject = require('./support/get_function_object'); describe('series', () => { it('series', (done) => { var call_order = []; async.series([ function(callback){ s...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/until.js
test/until.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('until', () => { it('until', (done) => { var call_order = []; var count = 0; async.until( (cb) => { expect(cb).to.be.a('function'); call_order....
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/linked_list.js
test/linked_list.js
var DLL = require('../lib/internal/DoublyLinkedList').default; var {expect} = require('chai'); describe('DoublyLinkedList', () => { it('toArray', () => { var list = new DLL(); expect(list.toArray()).to.eql([]); for (var i = 0; i < 5; i++) { list.push({data: i}); } ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/constant.js
test/constant.js
var async = require('../lib'); var {expect} = require('chai'); describe('constant', () => { it('basic usage', (done) => { var f = async.constant(42, 1, 2, 3); f((err, value, a, b, c) => { expect(err).to.equal(null); expect(value).to.equal(42); expect(a).to.equal...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/consoleFunctions.js
test/consoleFunctions.js
var async = require('../lib'); var {expect} = require('chai'); describe('console functions', () => { var names = [ 'log', 'dir', /* 'info' 'warn' 'error' */ ]; // generates tests for console functions such as async.log names.forEach((name) => { if (type...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/asyncFunctions.js
test/asyncFunctions.js
var {isAsync} = require('../lib/internal/wrapAsync'); function supportsAsync() { var supported; try { /* eslint no-eval: 0 */ supported = isAsync(eval('(async function () {})')); } catch (e) { supported = false; } return supported; } function supportsAsyncGenerators() { ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/map.js
test/map.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe("map", () => { function mapIteratee(call_order, x, callback) { setTimeout(() => { call_order.push(x); callback(null, x * 2); }, x * 25); } it('basic', function(d...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/cargo.js
test/cargo.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('cargo', () => { it('cargo', (done) => { var call_order = [], delays = [40, 40, 20]; // worker: --12--34--5- // order of completion: 1,2,3,4,5 var c = async.cargo((...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/filter.js
test/filter.js
var async = require('../lib'); var {expect} = require('chai'); function filterIteratee(x, callback) { setTimeout(() => { callback(null, x % 2); }, x*5); } function testLimit(arr, limitFunc, limit, iter, done) { var args = []; limitFunc(arr, limit, (x, next) => { args.push(x); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/some.js
test/some.js
var async = require('../lib'); var {expect} = require('chai'); var _ = require('lodash'); describe("some", () => { it('some true', (done) => { async.some([3,1,2], (x, callback) => { setTimeout(() => {callback(null, x === 1);}, 0); }, (err, result) => { expect(err).to.equal(...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/asyncify.js
test/asyncify.js
var async = require('../lib'); var assert = require('assert'); var {expect} = require('chai'); describe('asyncify', () => { it('asyncify', (done) => { var parse = async.asyncify(JSON.parse); parse("{\"a\":1}", (err, result) => { assert(!err); expect(result.a).to.equal(1); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/detect.js
test/detect.js
var async = require('../lib'); var {expect} = require('chai'); var _ = require('lodash'); describe("detect", () => { function detectIteratee(call_order, x, callback) { setTimeout(() => { call_order.push(x); callback(null, x == 2); }, x*5); } it('detect', function(d...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/parallel.js
test/parallel.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); var getFunctionsObject = require('./support/get_function_object'); describe('parallel', () => { it('parallel', (done) => { var call_order = []; async.parallel([ function(callback){ ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/heap.js
test/heap.js
var Heap = require('../lib/internal/Heap').default; var {expect} = require('chai'); describe('Heap', () => { it('push', () => { var heap = new Heap(); expect(heap.length).to.eql(0); heap.push({priority: 1, data: 'foo1'}); heap.push({priority: 2, data: 'foo2'}); heap.push({...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/autoInject.js
test/autoInject.js
/* eslint prefer-arrow-callback: 0, object-shorthand: 0 */ var async = require('../lib'); var {expect} = require('chai'); describe('autoInject', () => { it("basics", (done) => { var callOrder = []; async.autoInject({ task1(task2, callback){ expect(task2).to.equal(2); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/sortBy.js
test/sortBy.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('sortBy', () => { it('sortBy', (done) => { async.sortBy([{a:1},{a:15},{a:6}], (x, callback) => { setTimeout(() => {callback(null, x.a);}, 0); }, (err, result) => { assert(...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/waterfall.js
test/waterfall.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe("waterfall", () => { it('basics', (done) => { var call_order = []; async.waterfall([ function(callback){ call_order.push('fn1'); setTimeout(() => {cal...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/compose.js
test/compose.js
var async = require('../lib'); var {expect} = require('chai'); describe('compose', () => { context('all functions succeed', () => { it('yields the result of the composition of the functions', (done) => { var add2 = function (n, cb) { setTimeout(() => { cb(nul...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/retryable.js
test/retryable.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('retryable', () => { it('basics', (done) => { var calls = 0; var retryableTask = async.retryable(3, (arg, cb) => { calls++; expect(arg).to.equal(42); cb('fail'...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/times.js
test/times.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('times', () => { it('times', (done) => { async.times(5, (n, next) => { next(null, n); }, (err, results) => { assert(err === null, err + " passed instead of 'null'"); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/every.js
test/every.js
var async = require('../lib'); var {expect} = require('chai'); var _ = require('lodash'); describe("every", () => { it('everyLimit true', (done) => { async.everyLimit([3,1,2], 1, (x, callback) => { setTimeout(() => {callback(null, x >= 1);}, 0); }, (err, result) => { expect...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/forever.js
test/forever.js
var async = require('../lib'); var {expect} = require('chai'); describe('forever', () => { context('function is asynchronous', () => { it('executes the function over and over until it yields an error', (done) => { var counter = 0; function addOne(callback) { counter+...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/priorityQueue.js
test/priorityQueue.js
var async = require('../lib'); var {expect} = require('chai'); describe('priorityQueue', () => { it('priorityQueue', (done) => { var call_order = []; // order of completion: 2,1,4,3 var q = async.priorityQueue((task, callback) => { call_order.push('process ' + task); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/each.js
test/each.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe("each", () => { function eachIteratee(args, x, callback) { setTimeout(() => { args.push(x); callback(); }, x*25); } function eachNoCallbackIteratee(done, x, call...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/whilst.js
test/whilst.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('whilst', () => { it('whilst', (done) => { var call_order = []; var count = 0; async.whilst( (cb) => { expect(cb).to.be.a('function'); call_or...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/cargoQueue.js
test/cargoQueue.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('cargoQueue', () => { function worker (tasks, callback) { this.call_order.push('process ' + tasks.join(' ')); callback('error', 'arg'); } it('cargoQueue', (done) => { var call_o...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/ensureAsync.js
test/ensureAsync.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('ensureAsync', () => { var passContext = function(cb) { cb(this); }; it('defer sync functions', (done) => { var sync = true; async.ensureAsync((arg1, arg2, cb) => { e...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/race.js
test/race.js
var async = require('../lib'); var assert = require('assert'); describe('race', () => { it('should call each function in parallel and callback with first result', (done) => { var finished = 0; var tasks = []; function eachTest(i) { var index = i; return function (nex...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/mapValues.js
test/mapValues.js
var async = require('../lib'); var {expect} = require('chai'); describe('mapValues', () => { var obj = {a: 1, b: 2, c: 3, d: 4}; context('mapValuesLimit', () => { it('basics', (done) => { var running = 0; var concurrency = { a: 2, b: 2, ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/applyEach.js
test/applyEach.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('applyEach', () => { it('applyEach', (done) => { var call_order = []; var one = function (val, cb) { call_order.push(val) setTimeout(() => { call_order.pu...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/timeout.js
test/timeout.js
var async = require('../lib'); var {expect} = require('chai'); describe('timeout', () => { it('timeout with series', (done) => { async.series([ async.timeout((callback) => { setTimeout(() => { callback(null, 'I didn\'t time out'); }, 25); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/retry.js
test/retry.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); var _ = require('lodash'); describe("retry", () => { // Issue 306 on github: https://github.com/caolan/async/issues/306 it('retry when attempt succeeds',(done) => { var failed = 3; var callCount = 0;...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/groupBy.js
test/groupBy.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('groupBy', function() { this.timeout(250); function groupByIteratee(callOrder, val, next) { setTimeout(() => { callOrder.push(val); next(null, val+1); }, val * 25); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/auto.js
test/auto.js
var async = require('../lib/index.js'); var {expect} = require('chai'); var _ = require('lodash'); describe('auto', () => { it('basics', (done) => { var callOrder = []; async.auto({ task1: ['task2', function(results, callback){ setTimeout(() => { cal...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/tryEach.js
test/tryEach.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('tryEach', () => { it('no callback', () => { async.tryEach([]); }); it('empty', (done) => { async.tryEach([], (err, results) => { expect(err).to.equal(null); expec...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/setImmediate.js
test/setImmediate.js
var async = require('../lib'); var {expect} = require('chai'); describe("setImmediate", () => { it('basics', (done) => { var call_order = []; async.setImmediate(() => {call_order.push('two');}); call_order.push('one'); setTimeout(() => { expect(call_order).to.eql(['one...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/queue.js
test/queue.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('queue', function(){ // several tests of these tests are flakey with timing issues this.retries(3); it('basics', (done) => { var call_order = []; var delays = [50,10,180,10]; ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/apply.js
test/apply.js
var async = require('../lib'); var {expect} = require('chai'); describe('concat', () => { it('apply', (done) => { var fn = function (...args) { expect(args).to.eql([1,2,3,4]); }; async.apply(fn, 1, 2, 3, 4)(); async.apply(fn, 1, 2, 3)(4); async.apply(fn, 1, 2)(3,...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/concat.js
test/concat.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('concat', function() { this.timeout(250); function concatIteratee(callOrder, val, next) { setTimeout(() => { callOrder.push(val); next(null, [val, val+1]); }, val * 2...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/eachOf.js
test/eachOf.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); var _ = require('lodash'); describe("eachOf", () => { function forEachOfNoCallbackIteratee(done, x, key, callback) { expect(x).to.equal(1); expect(key).to.equal("a"); callback(); done(); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/seq.js
test/seq.js
var async = require('../lib'); var {expect} = require('chai'); var assert = require('assert'); describe('seq', () => { it('seq', (done) => { var add2 = function (n, cb) { expect(n).to.equal(3); setTimeout(() => { cb(null, n + 2); }, 50); }; ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/transform.js
test/transform.js
var async = require('../lib'); var {expect} = require('chai'); describe('transform', () => { it('transform implictly determines memo if not provided', (done) => { async.transform([1,2,3], (memo, x, v, callback) => { memo.push(x + 1); callback(); }, (err, result) => { ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/support/setup.js
test/support/setup.js
const chai = require('chai') chai.config.truncateThreshold = 0
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/support/get_function_object.js
test/support/get_function_object.js
module.exports = function (call_order) { return { one(callback) { setTimeout(() => { call_order.push(1); callback(null, 1); }, 125); }, two(callback) { setTimeout(() => { call_order.push(2); c...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/es2017/awaitableFunctions.js
test/es2017/awaitableFunctions.js
var async = require('../../lib'); const {expect} = require('chai'); const {default: wrapAsync} = require('../../lib/internal/wrapAsync') module.exports = function () { async function asyncIdentity(val) { var res = await Promise.resolve(val); return res; } const input = [1, 2, 3]; cons...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/es2017/asyncGenerators.js
test/es2017/asyncGenerators.js
var async = require('../../lib'); const {expect} = require('chai'); const delay = ms => new Promise(resolve => setTimeout(resolve, ms)) module.exports = function () { async function * range (num) { for(let i = 0; i < num; i++) { await delay(1) yield i } } function ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/test/es2017/asyncFunctions.js
test/es2017/asyncFunctions.js
var async = require('../../lib'); const {expect} = require('chai'); const assert = require('assert'); module.exports = function () { async function asyncIdentity(val) { var res = await Promise.resolve(val); return res; } this.retries(3); const input = [1, 2, 3]; const inputObj = ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/perf/suites.js
perf/suites.js
var _ = require("lodash"); var tasks; var count; module.exports = [{ name: "each", // args lists are passed to the setup function args: [ [10], [300], [10000] ], setup(num) { tasks = _.range(num); }, fn(async, done) { async.each(tasks, (num, cb) => { ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/perf/benchmark.js
perf/benchmark.js
#!/usr/bin/env node var _ = require("lodash"); var Benchmark = require("benchmark"); var {exec, execSync} = require("child_process"); var fs = require("fs"); var path = require("path"); var mkdirp = require("mkdirp"); var async = require("../index.js"); var suiteConfigs = require("./suites.js"); var semver = require("...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/perf/memory.js
perf/memory.js
if (process.execArgv[0] !== "--expose-gc") { console.error("please run with node --expose-gc"); process.exit(1); } var async = require("../"); global.gc(); var startMem = process.memoryUsage().heapUsed; function waterfallTest(done) { var functions = []; for(var i = 0; i < 10000; i++) { functi...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v2/scripts/linenumber.js
docs/v2/scripts/linenumber.js
/*global document */ (function() { var source = document.getElementsByClassName('prettyprint source linenums'); var i = 0; var lineNumber = 0; var lineId; var lines; var totalLines; var anchorHash; if (source && source[0]) { anchorHash = document.location.hash.substring(1); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v2/scripts/async.js
docs/v2/scripts/async.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.async = global.async || {}))); }(this, (function (exports) { 'use strict'; function slice(arrayLike, start) ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
true
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v2/scripts/jsdoc-custom.js
docs/v2/scripts/jsdoc-custom.js
/* eslint no-undef: "off" */ if (typeof setImmediate !== 'function' && typeof async === 'object') { setImmediate = async.setImmediate; } $(function initSearchBar() { function matchSubstrs(methodName) { var tokens = []; var len = methodName.length; for (var size = 1; size <= len; size++)...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v2/scripts/prettify/prettify.js
docs/v2/scripts/prettify/prettify.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v2/scripts/prettify/lang-css.js
docs/v2/scripts/prettify/lang-css.js
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v3/scripts/linenumber.js
docs/v3/scripts/linenumber.js
/*global document */ (function() { var source = document.getElementsByClassName('prettyprint source linenums'); var i = 0; var lineNumber = 0; var lineId; var lines; var totalLines; var anchorHash; if (source && source[0]) { anchorHash = document.location.hash.substring(1); ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v3/scripts/async.js
docs/v3/scripts/async.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.async = {})); })(this, (functi...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
true
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v3/scripts/jsdoc-custom.js
docs/v3/scripts/jsdoc-custom.js
/* eslint no-undef: "off" */ if (typeof setImmediate !== 'function' && typeof async === 'object') { window.setImmediate = async.setImmediate; } $(() => { function matchSubstrs(methodName) { var tokens = []; var len = methodName.length; for (var size = 1; size <= len; size++){ ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v3/scripts/prettify/prettify.js
docs/v3/scripts/prettify/prettify.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/docs/v3/scripts/prettify/lang-css.js
docs/v3/scripts/prettify/lang-css.js
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/mapValuesLimit.js
lib/mapValuesLimit.js
import eachOfLimit from './internal/eachOfLimit.js' import awaitify from './internal/awaitify.js' import once from './internal/once.js' import wrapAsync from './internal/wrapAsync.js' /** * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a * time. * *...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/rejectLimit.js
lib/rejectLimit.js
import _reject from './internal/reject.js' import eachOfLimit from './internal/eachOfLimit.js' import awaitify from './internal/awaitify.js' /** * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a * time. * * @name rejectLimit * @static * @memberOf module:...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/memoize.js
lib/memoize.js
import setImmediate from './internal/setImmediate.js' import initialParams from './internal/initialParams.js' import wrapAsync from './internal/wrapAsync.js' /** * Caches the results of an async function. When creating a hash to store * function results against, the callback is omitted from the hash and an * option...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/concatLimit.js
lib/concatLimit.js
import wrapAsync from './internal/wrapAsync.js' import mapLimit from './mapLimit.js' import awaitify from './internal/awaitify.js' /** * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time. * * @name concatLimit * @static * @memberOf module:Collections ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/reduce.js
lib/reduce.js
import eachOfSeries from './eachOfSeries.js' import once from './internal/once.js' import wrapAsync from './internal/wrapAsync.js' import awaitify from './internal/awaitify.js' /** * Reduces `coll` into a single value using an async `iteratee` to return each * successive step. `memo` is the initial state of the redu...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/nextTick.js
lib/nextTick.js
/* istanbul ignore file */ import { hasNextTick, hasSetImmediate, fallback, wrap } from './internal/setImmediate.js' /** * Calls `callback` on a later loop around the event loop. In Node.js this just * calls `process.nextTick`. In the browser it will use `setImmediate` if * available, otherwise `setTimeout(callba...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/series.js
lib/series.js
import _parallel from './internal/parallel.js' import eachOfSeries from './eachOfSeries.js' /** * Run the functions in the `tasks` collection in series, each one running once * the previous function has completed. If any functions in the series pass an * error to its callback, no more functions are run, and `callba...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/until.js
lib/until.js
import whilst from './whilst.js' import wrapAsync from './internal/wrapAsync.js' /** * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when * stopped, or an error occurs. `callback` will be passed an error and any * arguments passed to the final `iteratee`'s callback. * * The inverse of [...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/reflect.js
lib/reflect.js
import initialParams from './internal/initialParams.js' import wrapAsync from './internal/wrapAsync.js' /** * Wraps the async function in another function that always completes with a * result object, even when it errors. * * The result object has either the property `error` or `value`. * * @name reflect * @sta...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/concatSeries.js
lib/concatSeries.js
import concatLimit from './concatLimit.js' import awaitify from './internal/awaitify.js' /** * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time. * * @name concatSeries * @static * @memberOf module:Collections * @method * @see [async.concat]{@link module:Co...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/constant.js
lib/constant.js
/** * 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}. * * @name constant * @static * @memberOf module:Utils * @method * @categ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/doWhilst.js
lib/doWhilst.js
import onlyOnce from './internal/onlyOnce.js' import wrapAsync from './internal/wrapAsync.js' import awaitify from './internal/awaitify.js' /** * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in * the order of operations, the arguments `test` and `iteratee` are swit...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/map.js
lib/map.js
import _map from './internal/map.js' import eachOf from './eachOf.js' import awaitify from './internal/awaitify.js' /** * 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...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/cargo.js
lib/cargo.js
import queue from './internal/queue.js' /** * 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 * the `worker` has completed some tasks, each...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/reject.js
lib/reject.js
import _reject from './internal/reject.js' import eachOf from './eachOf.js' import awaitify from './internal/awaitify.js' /** * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test. * * @name reject * @static * @memberOf module:Collections * @method * @see ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/filter.js
lib/filter.js
import _filter from './internal/filter.js' import eachOf from './eachOf.js' import awaitify from './internal/awaitify.js' /** * 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...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/index.js
lib/index.js
/** * An "async function" in the context of Async is an asynchronous function with * a variable number of parameters, with the final parameter being a callback. * (`function (arg1, arg2, ..., callback) {}`) * The final callback is of the form `callback(err, results...)`, which must be * called once the function is...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/detectSeries.js
lib/detectSeries.js
import createTester from './internal/createTester.js' import eachOfLimit from './internal/eachOfLimit.js' import awaitify from './internal/awaitify.js' /** * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time. * * @name detectSeries * @static * @memberOf modul...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/someLimit.js
lib/someLimit.js
import createTester from './internal/createTester.js' import eachOfLimit from './internal/eachOfLimit.js' import awaitify from './internal/awaitify.js' /** * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time. * * @name someLimit * @static * @memberOf modu...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/some.js
lib/some.js
import createTester from './internal/createTester.js' import eachOf from './eachOf.js' import awaitify from './internal/awaitify.js' /** * Returns `true` if at least one element in the `coll` satisfies an async test. * If any iteratee call returns `true`, the main `callback` is immediately * called. * * @name som...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/doUntil.js
lib/doUntil.js
import doWhilst from './doWhilst.js' import wrapAsync from './internal/wrapAsync.js' /** * 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.d...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/asyncify.js
lib/asyncify.js
import initialParams from './internal/initialParams.js' import setImmediate from './internal/setImmediate.js' import { isAsync } from './internal/wrapAsync.js' /** * 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, * serie...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/detect.js
lib/detect.js
import createTester from './internal/createTester.js' import eachOf from './eachOf.js' import awaitify from './internal/awaitify.js' /** * 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 `c...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/groupByLimit.js
lib/groupByLimit.js
import mapLimit from './mapLimit.js' import wrapAsync from './internal/wrapAsync.js' import awaitify from './internal/awaitify.js' /** * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time. * * @name groupByLimit * @static * @memberOf module:Collectio...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/parallel.js
lib/parallel.js
import eachOf from './eachOf.js' import _parallel from './internal/parallel.js' /** * Run the `tasks` collection of functions in parallel, without waiting until * the previous function has completed. If any of the functions pass an error to * its callback, the main `callback` is immediately called with the value of...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/reduceRight.js
lib/reduceRight.js
import reduce from './reduce.js' /** * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order. * * @name reduceRight * @static * @memberOf module:Collections * @method * @see [async.reduce]{@link module:Collections.reduce} * @alias foldr * @category Collection * @param...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/someSeries.js
lib/someSeries.js
import createTester from './internal/createTester.js' import eachOfSeries from './eachOfSeries.js' import awaitify from './internal/awaitify.js' /** * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time. * * @name someSeries * @static * @memberOf module:Collections...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/parallelLimit.js
lib/parallelLimit.js
import eachOfLimit from './internal/eachOfLimit.js' import parallel from './internal/parallel.js' /** * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a * time. * * @name parallelLimit * @static * @memberOf module:ControlFlow * @method * @see [asyn...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/autoInject.js
lib/autoInject.js
import auto from './auto.js' import wrapAsync from './internal/wrapAsync.js' import { isAsync } from './internal/wrapAsync.js' var FN_ARGS = /^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/; var ARROW_FN_ARGS = /^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/; var FN_ARG_SPLIT = /,/; var FN_ARG =...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/sortBy.js
lib/sortBy.js
import map from './map.js' import wrapAsync from './internal/wrapAsync.js' import awaitify from './internal/awaitify.js' /** * Sorts a list by the results of running each `coll` value through an async * `iteratee`. * * @name sortBy * @static * @memberOf module:Collections * @method * @category Collection * @p...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/timesLimit.js
lib/timesLimit.js
import mapLimit from './mapLimit.js' import range from './internal/range.js' import wrapAsync from './internal/wrapAsync.js' /** * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a * time. * * @name timesLimit * @static * @memberOf module:ControlFlow * @meth...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false
caolan/async
https://github.com/caolan/async/blob/03fbed25c728e78b503df4f21e946948d9459cc9/lib/waterfall.js
lib/waterfall.js
import once from './internal/once.js' import onlyOnce from './internal/onlyOnce.js' import wrapAsync from './internal/wrapAsync.js' import awaitify from './internal/awaitify.js' /** * Runs the `tasks` array of functions in series, each passing their results to * the next in the array. However, if any of the `tasks` ...
javascript
MIT
03fbed25c728e78b503df4f21e946948d9459cc9
2026-01-04T15:02:19.437008Z
false