# ut-queue

> UT queue

Latest version **6.2.3** (published 2023-09-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ut-queue
pnpm add ut-queue
yarn add ut-queue
bun add ut-queue
```

## 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 | 6.2.3 |
| Published | 2023-09-29 |
| First published | 2017-10-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 92.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kalin.krustev |

## Links

- npm: https://www.npmjs.com/package/ut-queue
- Repository: https://github.com/softwaregroup-bg/ut-queue
- Homepage: https://github.com/softwaregroup-bg/ut-queue#readme
- Issues: https://github.com/softwaregroup-bg/ut-queue/issues
- npm.io page: https://npm.io/package/ut-queue

## Recent versions

- 6.2.3 (latest) — 2023-09-29
- 6.2.1-accu.0 (accu) — 2019-02-26
- 6.2.0-rc-godfather.1 (rc-godfather) — 2018-11-12
- 6.2.2 — 2020-01-17
- 6.2.1 — 2019-03-06
- 6.2.0 — 2019-02-02
- 6.2.0-rc-godfather.0 — 2018-10-25
- 6.1.0 — 2017-12-13
- 6.0.2 — 2017-11-13
- 6.0.1 — 2017-10-21

## README

# UT Queue

Generic queue functionality

## Scope

- Prioritization of messages
- Overflow handling
- Rate limiting
- Timeout handling
- Metrics

## API

This exports 1 APIs:

```javascript
{
    queues
}
```

## Queue public API

### ```queues()``` - Returns the below API

### ```queues.create({context, callback})``` - creates a queue

- ```context``` - associate the queue with the passed context.conId or create a
  default queue
- ```callback``` - optionally call this when queue ends

### ```queues.get(context)``` - finds a queue

- ```context``` - the context with which the queue is associated by
  context.conId or a return the default queue if context or context.conId is
  falsy value

### ```queues.delete(context)``` - ends a queue

- ```context``` - the context with which the queue is associated by
  context.conId or a end the default queue if context or context.conId is falsy value

### ```queues.count()``` - returns the count of queues

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