Awesome Open Source
Awesome Open Source

🚦 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 ✅
  • Vue 2 + @vue/composition-api ✅
  • 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

Support

Subscribe to me on herohero to receive bi-weekly coding tips, hacks and other distilled knowledge from my day to day work. I'm building herohero using Vue 3 and vue concurrency:).

License

MIT


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,865) 
typescript (11,988) 
vue (4,368) 
async (496) 
concurrency (203) 
task (102) 
composition-api (23) 
generators (20)