# task-chain

> task queue to process tesk one by one

Latest version **1.0.1** (published 2019-01-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install task-chain
pnpm add task-chain
yarn add task-chain
bun add task-chain
```

## 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 | 2019-01-03 |
| First published | 2017-08-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jessechen |

## Links

- npm: https://www.npmjs.com/package/task-chain
- npm.io page: https://npm.io/package/task-chain

## Dependencies (1)

- [user](https://npm.io/package/user.md) 0.0.0

## Recent versions

- 1.0.1 (latest) — 2019-01-03
- 1.0.0 — 2017-08-07

## README

# task-chain

this is project is about running tasks one by one.

for eack banch of tasks, you need to create a task runner:

`let chainTaskRunner = new ChainTaskRunner();`

after that, you can push your task to the task runner:

`let chainTask1 = new ChainTask(()->{ setTimeout(function(){chainTask1.end()}, 2000) }); `

`chainTaskRunner.addTask(chainTask1);`

but in your processer or your task, you need to call

`yourTask.end()`

to end the task, if you donot end the task manually, the task will keep running~!

for more detail, you can refer to example: ChainTaskTester.js


GITHUB: https://github.com/jessechen0319/task-chain

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