{"maintainers":[{"name":"dev","email":"i@izs.me"}],"dist-tags":{"latest":"3.0.2"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","readme":"# promise-call-limit\n\nCall an array of promise-returning functions, restricting concurrency to a\nspecified limit.\n\n## USAGE\n\n```js\nimport { callLimit } from 'promise-call-limit'\n// or: const { callLimit } = require('promise-call-limit')\n\nconst things = getLongListOfThingsToFrobulate()\n\n// frobulate no more than 4 things in parallel\ncallLimit(\n  things.map(thing => () => frobulateThing(thing)),\n  {\n    limit: 4,\n  },\n).then(results => console.log('frobulated 4 at a time', results))\n```\n\n## API\n\n### callLimit(queue Array<() => Promise>, opts<Object>)\n\nopts can contain:\n\n- limit: specified concurrency limit. Defaults to the number of\n  CPUs on the system minus one. Presumably the main thread is taking\n  up a CPU as well, so let's not be greedy. In the case where there\n  is only one cpu the limit will default to 1.\n- rejectLate: if true, then any rejection will not prevent the rest of\n  the queue from running. Any subsequent rejections will be ignored,\n  and the first rejection will be what the function finally rejects\n  with.\n\nNote that the array should be a list of Promise-_returning_ functions, not\nPromises themselves. If you have a bunch of Promises already, you're best\noff just calling `Promise.all()`.\n\nThe functions in the queue are called without any arguments.\n","repository":{"type":"git","url":"git+https://github.com/isaacs/promise-call-limit.git"},"bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"license":"ISC","versions":{"1.0.0":{"name":"promise-call-limit","version":"1.0.0","author":{"url":"https://izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"promise-call-limit@1.0.0","maintainers":[{"name":"dev","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/promise-call-limit#readme","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"tap":{"check-coverage":true},"dist":{"shasum":"38a6300a6df722372f137d91af5f0857141f5a93","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-1.0.0.tgz","fileCount":4,"integrity":"sha512-MIdxp3lvgK9aKaj1uotJfRs4hVgPRJQ6rL8ZoaDDAuuKfyg2eP7A6oj9imEN9lDdbEdDJ7tcgSdhlRo/3NcghQ==","signatures":[{"sig":"MEQCICf/Om1VACQKTd+M/EOQFou1dfTT3pUO/shXO0eOvEmeAiAyiXNwcK+VEO8mL5dDB5Fg9hHwGxQqhTw2Dyg+vZ1xTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL4s2CRA9TVsSAnZWagAAGjgP/Rri9PBC3HeMc7xqiN7/\nXnd4iuo/QKaC2wZzL0A9J7q67VLjk7rJYThtFQlrV8lnem2HQvrLbQSlGkfB\nU1S6ijobzPaW/8nJWZpt+A81Jbxx21uJy5ni+Hu74/7ITKx2gS+tPjqjqVq4\nlJx26TuVCJi5JSDUWRarUT6QEB4a52bTgTJFayHCm0M/iYNu0b/H5JuuWX0V\nRB4gDirvrMWOGpMUgMotUYnGwJABSDLfzDMhxBNpu6JVXVD10v2JoQRaEham\naOwI0kwQXk3Zxo9s6Ik34qGCV0i8JiJWrIpFSqq2EgYC3XRElWH8xPxSJyFF\ngw0R3FYVwRjAvWlgmJsy+gZrriOBoVWDIiCbExE3ZHrcKZjTD89fLF3TtlEs\nKHSlBP6Hq1wEfYW4QMsv8V7NoAeTQepQkBkdRO2st+1w6DURMOV7UoLZPUUu\nR0z3AKQcIXwhc3+t7JYJabonVmFkVLJy9b82aoCdkf1zqzCZ5//zZ73rpCGu\nwKLJavOhbhq5S0z204/xYO75HEpOWTgWu8M1Tjfmqbr4Zh8mPAv3jPYQFPrJ\ne7RuiHhMaDGVfR3+dJQVMBQUTIAT7re4JVBV9O1Xsv3t6d23we8zDP9IL2ze\nnAF2TZPu0qBjrgkiegYuMzKS5bV5MEY+Sz8Fb1ipfFxT1qXmXyo3nT84xmUu\ncOZT\r\n=dbUq\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"f261432f053a17a5b37a8bdbd0f0b6175347901b","scripts":{"test":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"dev","email":"i@izs.me"},"repository":{"url":"git+https://github.com/isaacs/promise-call-limit.git","type":"git"},"_npmVersion":"6.13.6","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","directories":{},"_nodeVersion":"13.4.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.6"},"_npmOperationalInternal":{"tmp":"tmp/promise-call-limit_1.0.0_1580174133846_0.18454780895004275","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"promise-call-limit","version":"1.0.1","author":{"url":"https://izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"promise-call-limit@1.0.1","maintainers":[{"name":"dev","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/promise-call-limit#readme","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"tap":{"check-coverage":true},"dist":{"shasum":"4bdee03aeb85674385ca934da7114e9bcd3c6e24","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-1.0.1.tgz","fileCount":4,"integrity":"sha512-3+hgaa19jzCGLuSCbieeRsu5C2joKfYn8pY6JAuXFRVfF4IO+L7UPpFWNTeWT9pM7uhskvbPPd/oEOktCn317Q==","signatures":[{"sig":"MEUCIFivJ0QK5ADF/n3C6ZSTG5fCkRzBI8heYN+RZhqVlShiAiEA+KdU/J0keh0eKGrSJYLJPqkj0PHmVek+S0VTPAbd0zo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL4w+CRA9TVsSAnZWagAAccAP/1xUA5bOhfbF7Dw/zkEs\nFGvUu+VpInCAZeU97lDVGMOh988DJzyhsW/oqPb2TvynwBe+JWh1T6hU1zbW\nkGBYm5LYnZBxj75kzHkkv0yWuaQS3uL40rBz5vPEPKqILCyp0KJIMZZrCRT3\nGrbkvYqDF7/XDSrVsroj+mhOnPADtWcpyfw33mWiVVlmWxIiCoHZWIXr3Czg\nABhqPvagaSOrKq9VJY+RMfqUKbOjS0nUq82Zm6if9aBkOyci4/Ns9YLxKwqK\ngaoc6+wFD3+2Qvw1CXUbQZTZN6VQEGXcLFrl3xkZyq9FJEBjghRRCrnBz+tL\nIOZ0Xb7sDWQnh8mH0VAbsJBBXunOCxi1HQij/j7C2uQsIkz4nl+lQ1hYREhZ\noIPm8OcmP5ubv1SxGXQ40SlD2sAOCF8wcjBzbvAnqRns7AbXXfAzlSZNIZND\nU9+4yfw0GGQlyIiLId0cu7YzTT661GqntKAEVjH1Q/oR9N0FawQrmrMZzOnP\n9VmvDaDbyUHsmKqK8VcrbCnIdUObTrx3e0SMd+jMdZxvdsS2d9CCGmnOKSbE\nvwKqv2EVg2OlMBzEso+5slwzapZ/3pAvKWrzUetk7RbBNk1sE2s4YTOlpGNS\nY1jTEyoy2W6aQ/tFnDQpl5DUv0moN28BEygfB7tspkp/GuXHT5sAP3WuNMP4\nNh95\r\n=1Bu9\r\n-----END PGP SIGNATURE-----\r\n"},"funding":{"url":"https://github.com/sponsors/isaacs"},"gitHead":"e500ec357962249ce3b249d2f7c44b4a8be1da83","scripts":{"test":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"dev","email":"i@izs.me"},"repository":{"url":"git+https://github.com/isaacs/promise-call-limit.git","type":"git"},"_npmVersion":"6.13.6","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","directories":{},"_nodeVersion":"13.4.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.6"},"_npmOperationalInternal":{"tmp":"tmp/promise-call-limit_1.0.1_1580174397658_0.08131277134967263","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"promise-call-limit","version":"1.0.2","author":{"url":"https://izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"promise-call-limit@1.0.2","maintainers":[{"name":"dev","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/promise-call-limit#readme","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"tap":{"check-coverage":true},"dist":{"shasum":"f64b8dd9ef7693c9c7613e7dfe8d6d24de3031ea","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-1.0.2.tgz","fileCount":4,"integrity":"sha512-1vTUnfI2hzui8AEIixbdAJlFY4LFDXqQswy/2eOlThAscXCY4It8FdVuI0fMJGAB2aWGbdQf/gv0skKYXmdrHA==","signatures":[{"sig":"MEUCIBbc6xNwUB+WVSnsEJvAObs0Ge/gKavjksSY4wbUlFtEAiEAibtU4CF1/LHkSCke9aVGqKI+yr1fQHYh+fxgb2uxh58=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJwHXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhGg//Znu2yjUHxsxtAUWadhQ/PuBcMMCR/9kprA3XWo7Zf5ZfBc1i\r\nhWM3/tjQf6k/XUNFh4uCQPSm6kO6o2d2ZfndwZvoCEzxcMRzQfetF7q2R9hC\r\n+jK7soKUHr69MEBIvkYzX91/6L5AoTBHS+YzMq4pY2wbsEtk1CRcgOb237hP\r\nxQGNi2hogzABRtu2YhDu/gjnzSh+bJXhy93KIlsjFg9GgiUSuz+JcR8RKkiy\r\nPrtfmshSfJReCq5qd+vyLJLqdCWQ25cogAtYS5xGGn+RoTGtSgFZYf1aH4A5\r\n1b8ajIIJnIBwkuSmDQ3MZttP65OTiqUO+neI3KqP7PfQc16K72w5az8yv8+B\r\nstFJlT+p9WYeDae7nlzohKQluYUycaoLu+R6PN2JpxQvWCH/6mwor4eoW7mC\r\nMnJaifE1UojuKG3hLFRK8dG29uq2Cowm9FLR8seYdoyFe+XUof7aAbll8rV4\r\ntZRP19sh4OH5w8AsgP2FRrKOXDbgRdsoZ4E7qzITASsD4prprIM7VL9meeCr\r\n67nFm88k9Am3ZNGzNJf370j7wAGZoZ+jI6lP+BBCBzN4rrnRvxPSyC0SPJKN\r\n2eUwT/ZiUIZ8dqbTQeabN1l4GCk9efvCiYD7BLjyYeHRpAvFxXNjWeNADlN1\r\n7wXN53Ml2ku9YblV59jc3R/DRLun7QQzK5k=\r\n=KSCC\r\n-----END PGP SIGNATURE-----\r\n"},"funding":{"url":"https://github.com/sponsors/isaacs"},"gitHead":"7852727362a1ab75811e70f1131fc22517fe363a","scripts":{"test":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"dev","email":"i@izs.me"},"repository":{"url":"git+https://github.com/isaacs/promise-call-limit.git","type":"git"},"_npmVersion":"9.5.1","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","directories":{},"_nodeVersion":"18.14.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-call-limit_1.0.2_1680277975320_0.010710136839711781","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"promise-call-limit","version":"2.0.0","author":{"url":"https://izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"promise-call-limit@2.0.0","maintainers":[{"name":"dev","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/promise-call-limit#readme","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"tap":{"check-coverage":true},"dist":{"shasum":"256a7b5d527efd291188bc1fa5e593bfeef8516b","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-2.0.0.tgz","fileCount":4,"integrity":"sha512-s8O4+KvA82pX9thlxrTn1gsqFyjLgc8hMd7YmHUzFcTxqgX5cHX0DDqOnalrE/5S1TOBvzMOz/4QvTNKbGYUtQ==","signatures":[{"sig":"MEQCICGYmb2cEmGbmq6oDs/NBysmIWA5tAyUpUjJQapBA7mpAiB+NbiGfJrqdXAtEZg7Em2qUxtj6R3lz0vGB4a1nbU6Tg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4163},"funding":{"url":"https://github.com/sponsors/isaacs"},"gitHead":"f51b58e19db4b901aefaedbf1143c543e326ec76","scripts":{"test":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"dev","email":"i@izs.me"},"repository":{"url":"git+https://github.com/isaacs/promise-call-limit.git","type":"git"},"_npmVersion":"10.1.0","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-call-limit_2.0.0_1705110911061_0.7614007798069753","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"promise-call-limit","version":"3.0.1","author":{"url":"https://izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"promise-call-limit@3.0.1","maintainers":[{"name":"dev","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/promise-call-limit#readme","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"dist":{"shasum":"3570f7a3f2aaaf8e703623a552cd74749688cf19","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-3.0.1.tgz","fileCount":13,"integrity":"sha512-utl+0x8gIDasV5X+PI5qWEPqH6fJS0pFtQ/4gZ95xfEFb/89dmh+/b895TbFDBLiafBvxD/PGTKfvxl4kH/pQg==","signatures":[{"sig":"MEUCIDV4G5t1FxOAC2WHfFz2C8ZQ//hn5eOggvTM6dtyyNY7AiEAoLK1whQUGPYImC6Kv0c2ZYl641W47tGXsOoBF7eoWxM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17634},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/isaacs"},"gitHead":"7b299695f5e5bd581c4599d83b3457c9eeb8cafb","scripts":{"snap":"tap","test":"tap","prepare":"tshy","pretest":"npm run prepare","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"dev","email":"i@izs.me"},"prettier":{"semi":false,"useTabs":false,"tabWidth":2,"endOfLine":"lf","printWidth":70,"arrowParens":"avoid","singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true},"repository":{"url":"git+https://github.com/isaacs/promise-call-limit.git","type":"git"},"_npmVersion":"10.1.0","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^18.6.1","tshy":"^1.8.2","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc","prettier":"^3.2.1"},"_npmOperationalInternal":{"tmp":"tmp/promise-call-limit_3.0.1_1705111744033_0.9012721382156068","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"promise-call-limit","version":"3.0.2","description":"Call an array of promise-returning functions, restricting concurrency to a specified limit.","repository":{"type":"git","url":"git+https://github.com/isaacs/promise-call-limit.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"prepare":"tshy","pretest":"npm run prepare","snap":"tap","test":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write . --log-level warn --cache"},"devDependencies":{"prettier":"^3.3.3","tap":"^21.0.1","tshy":"^3.0.2","typedoc":"^0.26.6"},"prettier":{"experimentalTernaries":true,"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"funding":{"url":"https://github.com/sponsors/isaacs"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","type":"module","module":"./dist/esm/index.js","_id":"promise-call-limit@3.0.2","gitHead":"39884d887c39ed303b037c2a8b035c2fc3a1dfe9","bugs":{"url":"https://github.com/isaacs/promise-call-limit/issues"},"homepage":"https://github.com/isaacs/promise-call-limit#readme","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==","shasum":"524b7f4b97729ff70417d93d24f46f0265efa4f9","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/promise-call-limit/-/promise-call-limit-3.0.2.tgz","fileCount":13,"unpackedSize":17744,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3AYT6St6KWgIJwTIska9qCJJIDpU+zer52yz9vYy76AiEAorqnmCVRImqBI8JlYszpHRlb4kGUaVdoeiyGBLhGesU="}]},"_npmUser":{"name":"dev","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"dev","email":"i@izs.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-call-limit_3.0.2_1725827590905_0.11330756446916723"},"_hasShrinkwrap":false}},"name":"promise-call-limit","time":{"created":"2020-01-28T01:15:33.814Z","modified":"2024-09-08T20:33:11.203Z","1.0.0":"2020-01-28T01:15:33.935Z","1.0.1":"2020-01-28T01:19:57.798Z","1.0.2":"2023-03-31T15:52:55.486Z","2.0.0":"2024-01-13T01:55:11.234Z","3.0.1":"2024-01-13T02:09:04.224Z","3.0.2":"2024-09-08T20:33:11.038Z"},"readmeFilename":"README.md","homepage":"https://github.com/isaacs/promise-call-limit#readme"}