JSPM

  • Created
  • Published
  • Downloads 8628
  • Score
    100M100P100Q122395F
  • License MIT

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

Package Exports

  • vue-concurrency

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-concurrency) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🚦 vue-concurrency (beta)

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

  • 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