# taskflows

> Scalable async taskflow engine

Latest version **1.0.0** (published 2016-07-08) · 0 weekly downloads

## Install

```sh
npm install taskflows
pnpm add taskflows
yarn add taskflows
bun add taskflows
```

## 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.0 |
| Published | 2016-07-08 |
| First published | 2016-07-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | kameha |

## Links

- npm: https://www.npmjs.com/package/taskflows
- Repository: https://github.com/MrNice42/taskflows
- Homepage: https://github.com/MrNice42/taskflows#readme
- Issues: https://github.com/MrNice42/taskflows/issues
- npm.io page: https://npm.io/package/taskflows

## Dependencies (5)

- [merge](https://npm.io/package/merge.md) ^1.2.0
- [isarray](https://npm.io/package/isarray.md) 0.0.1
- [isnumber](https://npm.io/package/isnumber.md) ^1.0.0
- [isobject](https://npm.io/package/isobject.md) ^2.0.0
- [isstring](https://npm.io/package/isstring.md) ^1.0.6

## Recent versions

- 1.0.0 (latest) — 2016-07-08

## README

# TaskFlows

Scalable Promise / semaphore manager & task sequencer


## Minimal Examples

As simple semaphore

```js
        var s = new taskflow().then(callback);
        rows.forEach(function ( row ) {
                    s.wait();
                    doSomething(row, s.release);
                });
        s.run();
```
        
As task flow

```js
        var scope = {rows : []},
            flow  = new taskflow(
                [
                    ( scope, flow )=> {
                        return [async1, async2, async3]
                    },
                    ( scope, flow )=> {

                        scope.rows.forEach(function ( row ) {
                            flow.wait();
                            doSomething(row, flow.release);
                        });

                    }
                ],
                scope
            ).then(callback).run();
```

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