@b08/async
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@b08/async, seeded from @b08/library-seed, library type: dry

Set of DRY methods, occasionally useful in asynchronous code

wait/delay

Waits for specified period in milliseconds. Basically this is setTimeout converted to Promise.

waitFor

Waits until asynchronous condition is met. Can also specify a timeout and checking interval in milliseconds.

runSequential

For each item in the array, sequentially runs provided asynchronous function.

runParallel

Encapsulation of Promise.all

runInGroups

Splits provided array into groups. Items inside of a group run sequentially, groups are run in parallel. Returns array of results.

Readme

Keywords

none

Package Sidebar

Install

npm i @b08/async

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

37 kB

Total Files

92

Last publish

Collaborators

  • b08