# @alexsergey/async-loop

> Async loop and inverse async loop

Latest version **1.0.1** (published 2020-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @alexsergey/async-loop
pnpm add @alexsergey/async-loop
yarn add @alexsergey/async-loop
bun add @alexsergey/async-loop
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-10-17 |
| First published | 2019-05-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleksandrov Sergey |
| Maintainers | alexsergey |
| Keywords | async, loop, async loop, inverse async loop |

## Links

- npm: https://www.npmjs.com/package/@alexsergey/async-loop
- npm.io page: https://npm.io/package/@alexsergey/async-loop

## Dependencies (1)

- [valid-types](https://npm.io/package/valid-types.md) 1.0.2

## Recent versions

- 1.0.1 (latest) — 2020-10-17
- 1.0.0 — 2019-05-13

## README

# Async Loop

Async loop and inverse async loop

```js
import { asyncLoop, inverseAsyncLoop } from '@alexsergey/async-loop';

asyncLoop(items, (item, loop) => {
    //.. async logic
    loop.iteration() // return index of array iteration
    loop.next() // next iteration
    loop.break() // cancel loop
}, () => {
    // it calls after all iterations
})
```

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