Vue Concurrency screenshot

Vue Concurrency

Author Avatar Theme by Martinmalinda
Updated: 18 Oct 2025
358 Stars

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

Categories

Overview

Vue-concurrency is an innovative library designed for Vue and the Composition API, inspired by ember-concurrency. Its primary goal is to streamline the management of asynchronous operations, making it easier and more efficient for developers to handle concurrency in their applications. By reducing boilerplate code and allowing developers to leverage modern approaches like throttling and polling, vue-concurrency enhances the developer experience while ensuring code reliability.

With support for Vue 2 and 3, along with TypeScript compatibility, vue-concurrency caters to a wide range of development scenarios. It’s especially beneficial for those looking to encapsulate asynchronous operations and manage them more effectively without the usual complexity that comes with asynchronous programming.

Features

  • Vue 3.3+ Compatibility: Fully supports the latest Vue version (5.x), ensuring access to the newest features and optimizations.
  • Legacy Support: Also compatible with Vue 2.7 & 3.2 (4.x) and Vue 2 with @vue/composition-api, catering to various project requirements.
  • TypeScript Support: Provides seamless integration for TypeScript users, promoting type safety and better developer tooling.
  • Async Cancellation: Utilizes generator functions and Continuation-passing style (CAF) to enable easy cancellation of async tasks, enhancing control over operations.
  • AbortSignal Integration: Allows for the graceful cancellation of XHR/Fetch requests using AbortSignal, improving application responsiveness.
  • Derived Reactive State: Tracks the status of async operations through properties like isRunning, isIdle, isFinished, and isCancelled for effective state management.
  • Concurrency Management Functions: Offers a variety of methods such as drop(), restartable(), and enqueue() to efficiently manage concurrent tasks.
  • SSR Support: Experimental support for server-side rendering (SSR) opens up new possibilities for building performant applications.