# datawaiter

> This is a package for manage different asynchronous call

Latest version **1.0.4** (published 2018-12-03) · ISC license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2018-12-03 |
| First published | 2018-12-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Marty |
| Maintainers | arthur_marty |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2018-12-03
- 1.0.3 — 2018-12-03
- 1.0.1 — 2018-12-03
- 1.0.0 — 2018-12-03

## README

# Data Waiter

## This is a package to change the way we manage asynchrone code.

Sometimes, we have to manage multi process witch can be in same times, but, callback block this.

To "fix" that, I made a plugin who handle the final callback, and the number of require caller


You can pass to the set function a key/value you can access in the param of the callback.

```
// require module
const DataWaiter = require('../DataWaiter/index');

// declare datawriter handler
var dw = new DataWaiter(3);

// set the callback
dw.cb = function (data) {
    console.log(data);
    console.log(data.name + " " + data.last);
}

// In each callback, call a final
dw.set("last", "Marty");
dw.set("name", "Arthur");
dw.set("bidule", ["toto", "tati", "tata"]);
```

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