Skip to content

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

License

Notifications You must be signed in to change notification settings

MartinMalinda/vue-concurrency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7e1ddc2 Β· Jan 1, 2025
Dec 23, 2023
May 7, 2024
Jan 1, 2025
Dec 23, 2023
Jun 26, 2020
May 7, 2024
May 19, 2020
Oct 31, 2021
Jun 5, 2020
Dec 26, 2024
Jan 1, 2025
Jan 1, 2025
Sep 26, 2020
Dec 23, 2023
Dec 23, 2023

Repository files navigation

🚦 vue-concurrency

Test Coverage gzip size npm

Inspired by ember-concurrency.

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:

Features

  • Vue 3.3+ (Version === 5.x)βœ…
  • Vue 2.7 & 3.2 (Version === 4.x)βœ…
  • Vue 2 + @vue/composition-api (Version < 4.x) βœ…
  • TypeScript support
  • Async cancellation via generator functions and 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

Demos

License

MIT