Settle promises concurrently and get their fulfillment value or rejection reason
promise settle settled resolved iterator fulfill reject fulfilled rejected reflect inspect error async await promises concurrently concurrency parallel bluebirdSimilar to Promise.all(), but accepts functions instead of promises directly so you can limit the concurrency.If you're doing the same work in each function, use p-map instead.
promise all function func fn limited limit control rate collection iterable iterator fulfilled async await promises concurrent concurrently concurrency parallel bluebirdUseful as a side-effect iterator. Prefer p-map if you don't need side-effects, as it's concurrent.Returns a Promise that is fulfilled when all promises in input and ones returned from iterator are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original input.
promise foreach for-each for each collection iterable iterator fulfilled async await promises serial serially series bluebirdUseful when you need to run promise-returning & async functions multiple times with different inputs concurrently and get a filtered down result.Returns a Promise that is fulfilled when all promises in input and ones returned from filterer are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from filterer in input order.
promise filter collection iterable iterator fulfilled async await promises concurrently concurrency parallel bluebirdUseful if you're doing some heavy operations and would like to only do it when the promise is actually used.Same as the Promise constructor. PLazy is a subclass of Promise.
promise lazy defer deferred then catch fulfilled async function await promises bluebirdThink of it like an async version of Array#find.Here we find the first file that exists on disk, in array order.
promise locate find finder search searcher test array collection iterable iterator race fulfilled fastest async await promises bluebirdUseful when you need to run promise-returning & async functions multiple times with different inputs concurrently.Returns a Promise that is fulfilled when all promises in input and ones returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in input order.
promise async-functions concurrency mapper nodejs parallel promises async async-await await iteration map resolved wait collection iterable iterator race fulfilled concurrently bluebirdUseful as a side-effect mapper. Use p-map if you don't need side-effects, as it's concurrent.Returns a Promise that is fulfilled when all promises in input and ones returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the mapper created promises fulfillment values.
promise map collection iterable iterator fulfilled serial serially async await promises bluebirdUseful when you want a promise to fulfill no matter what and would rather handle the actual state afterwards.Here, Promise.all would normally fail early because one of the promises rejects, but by using p-reflect, we can ignore the rejection and handle it later on.
promise reflect inspect debug fulfill reject fulfilled rejected error async await promises bluebirdLike Array.some for promises. Returns a Promise that is fulfilled when any promise in input and ones returned from testFn are fulfilled, or rejects if any of the promises reject. The fulfilled value is a boolean that is true if any promise passed the test and false otherwise.
promise concurrency async-await async-functions nodejs parallel test async await iteration bluebird collection concurrently filter fulfilled iterable iterator promises someES Proposal spec-compliant shim for Promise.allSettled. Invoke its "shim" method to shim Promise.allSettled if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended. This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the proposed spec.
polyfill promise ecmascript await shim allsettled es-shim promises settled fulfilled resolved rejected promise.allsettled apiES Proposal spec-compliant shim for Promise.any. Invoke its "shim" method to shim Promise.any if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended. This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the proposed spec.
promise promises any settled fulfilled resolved rejected allsettled resolve race promise.any shim polyfill es-shim api
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.