# @vlr/async-tools

> set of DRY async tools. Typescript style.

Latest version **1.0.0** (published 2019-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vlr/async-tools
pnpm add @vlr/async-tools
yarn add @vlr/async-tools
bun add @vlr/async-tools
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-03 |
| First published | 2019-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 36.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vladimir Repin |
| Maintainers | vlr |

## Links

- npm: https://www.npmjs.com/package/@vlr/async-tools
- Repository: https://gitlab.com/vlr/async-tools
- Homepage: https://gitlab.com/vlr/async-tools#readme
- Issues: https://gitlab.com/vlr/async-tools/issues
- npm.io page: https://npm.io/package/@vlr/async-tools

## Dependencies (1)

- [@vlr/array-tools](https://npm.io/package/@vlr/array-tools.md) ^2.1.0

## Recent versions

- 1.0.0 (latest) — 2019-02-03

## README

# @vlr/async tools
Set of DRY tools, occasionally useful in asynchronous code

# wait
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.

---
_Source: https://npm.io/package/@vlr/async-tools · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
