# uiworkqueue

> A lightweight library for executing simple asynchronous workqueues with tree structured dependencies.

Latest version **1.0.0** (published 2021-04-04) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2021-04-04 |
| First published | 2021-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 71.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | garethgeorge |
| Maintainers | thelastpenguin |

## Links

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

## Dependencies (5)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [debug](https://npm.io/package/debug.md) ^4.3.1
- [blessed](https://npm.io/package/blessed.md) ^0.1.81
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^4.0.7
- [@types/blessed](https://npm.io/package/@types/blessed.md) ^0.1.17

## Recent versions

- 1.0.0 (latest) — 2021-04-04

## README

# WorkQueue
A lightweight library for executing simple asynchronous workqueues with tree structured dependencies.

NOTE: more complex DAG like dependency structures can be constructed programatically and are supported but are not the primary goal of this library.

```js
const pool = new WorkQueue(newLambdaTask(async (worker) => {
  // step 1: construct some set of child tasks
  // step 2: get results of those tasks with worker.getResults()
  // step 3: evaluate the results and return
}));
```

# TODO
 - split out lib/queue and lib/semaphore into a separate package for synchronization

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