# vue-concurrency

> A library for encapsulating asynchronous operations and managing concurrency for Vue + Composition API

Latest version **6.0.0-0** (published 2026-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-concurrency
pnpm add vue-concurrency
yarn add vue-concurrency
bun add vue-concurrency
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.0.0-0 |
| Published | 2026-01-20 |
| First published | 2020-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 59.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 359 |
| Author | Martin Malinda |
| Maintainers | martinmalinda |
| Keywords | vue, composition api, vuejs, generators, concurrency, task, async, hooks |

## Links

- npm: https://www.npmjs.com/package/vue-concurrency
- Repository: https://github.com/martinmalinda/vue-concurrency
- Homepage: https://vue-concurrency.netlify.app/
- Issues: https://github.com/martinmalinda/vue-concurrency/issues
- npm.io page: https://npm.io/package/vue-concurrency

## Dependencies (1)

- [caf](https://npm.io/package/caf.md) ^15.0.1

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 6.0.0-0 (latest) — 2026-01-20
- 4.0.0-9 (next) — 2022-11-12
- 5.0.3 — 2025-01-01
- 5.0.2 — 2024-12-26
- 5.0.1 — 2024-05-07
- 5.0.0 — 2023-12-23
- 4.0.1 — 2023-03-10
- 2.4.0 — 2023-01-26
- 4.0.0 — 2022-11-12
- 4.0.0-8 — 2022-09-14
- 4.0.0-7 — 2022-04-22
- 4.0.0-6 — 2022-02-07
- 3.0.0-7 — 2022-02-07
- 4.0.0-5 — 2022-02-07
- 4.0.0-4 — 2022-02-01
- … 41 more at https://npm.io/package/vue-concurrency/versions

## README

# 🚦 vue-concurrency

[![gzip size](https://shields.io/bundlephobia/minzip/vue-concurrency)](https://bundlephobia.com/package/vue-concurrency) [![npm](https://img.shields.io/npm/v/vue-concurrency)](https://www.npmjs.com/package/vue-concurrency)

Inspired by [ember-concurrency](http://ember-concurrency.com/).

A library for encapsulating asynchronous operations and managing concurrency for Vue and Composition API.

vue-concurrency aims to provide a reasonable abstraction for performing asynchronous operations. It reduces boilerplate code, provides reliable derived state and allows new approaches to techniques like throttling, debouncing, polling. Read more about why and how in the docs:

- 📖 [Documentation](https://vue-concurrency.netlify.app/)

## Features

- Vue 3.3+ (Version === 5.x)✅
- Vue 2.7 & 3.2 (Version === 4.x)✅
- Vue 2 + [@vue/composition-api](https://github.com/vuejs/composition-api) (Version < 4.x) ✅
- **TypeScript support**
- **Async cancellation** via generator functions and [CAF](https://github.com/getify/CAF)
- Providing `AbortSignal` to **abort XHR/Fetch requests**
- **Derived reactive state** to track status of async operations: `isRunning, isIdle, isFinished, isCancelled` and more
- **Concurrency management**: `drop()`, `restartable()`, `enqueue()` and other tasks
- **SSR support** (experimental)

## Installation

- 📦 [Installation instructions](https://vue-concurrency.netlify.app/installation/)

## Demos

- 🔍 [Autocomplete](https://vue-concurrency.netlify.app/examples/autocomplete/)
- 🚦 [Concurrency](https://vue-concurrency.netlify.app/managing-concurrency/)


## License

MIT

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