
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
asynchronously
Advanced tools
asynchronously iterate over items and resolve promises instead of callbacks. async library for promises
asynchronously iterate over items and resolve promises instead of callbacks
This is the async library for promises, without a lot of extra dependencies like in bluebird.
attempt(fn:Function|AsyncFunction, ...args:Array<Any>):Promise<Any>
- Call a function with the given arguments and reject
caught errorsauto(tasks:Object<String, AsyncFunction|Array<String|AsyncFunction>>):Promise<Object>
- Run tasks by specifying dependent additional dependent
tasks, resolves to an object containing the mapping of task property
names to task result values. See async.auto for how to construct tasks
delayed(fn:Function|AsyncFunction, ms:Number = 10):Promise<Any>
- Execute a function after a given number of milliseconds and resolve the promise to the function return valueeach(items:Iterable, [limit:Number = POSITIVE_INFINITY,] iterator:Function(item:Any, index:Number, items:Iterable)):Promise
- Execute an iterator for a given set of items with a limit
on the number of simultaneous operationsevery(items:Iterable, [limit:Number = POSITIVE_INFINITY,] iterator:Function(item:Any, index:Number, items:Iterable)):Promise<Boolean>
- Resolves true if all iterated items resolve true, otherwise resolves falsemap(items:Iterable, [limit:Number = POSITIVE_INFINITY,] iterator:Function(item:Any, index:Number, items:Iterable))
- Collect the results of all items
passed to the iteratorreduce(items:Iterable, iterator(previous:Any, item:Any, index:Number, items:Iterable), accumulator:Any)
- Sequentially call an
iterator for each item and include the previous result starting with
the value of the accumulatorsome(items:Iterable, [limit:Number = POSITIVE_INFINITY,] iterator:Function(item:Any, index:Number, items:Iterable)):Promise<Boolean>
- Resolves true if any iterated items resolve true, otherwise resolves falsewrap(fn:Function, ...args:Array<Any>):Promise<Any>
- Call a function using node callback style and
resolve or reject to a promiseonce(event:String|Array<String>, target:EventEmitter, timeout:Number = -1):Promise<Any>
- Wait for one or more events
on an EventEmitter and optionally timeout the waitwait(ms:Number = 10)
- Use a promise for a setTimeout callonce
methodFAQs
asynchronously iterate over items and resolve promises instead of callbacks. async library for promises
The npm package asynchronously receives a total of 3 weekly downloads. As such, asynchronously popularity was classified as not popular.
We found that asynchronously demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.