Asynchronous Tasks to manage Concurrency
vue-concurrency is a library for encapsulating asynchronous operations and managing concurrency for Vue and Composition API.
It aims to provide a reasonable abstraction for performing asynchronous operations by offering the concept of Tasks.
Tasks wrap asynchronous operations, and every Task has its own derived state. As opposed to promises, they can be cancelled and they cancel automatically if the component is unmounted. Tasks can be run in parallel, set as restartable, canceled or enqueued to be performed later.
vue-concurrency reduces boilerplate code and allows new approaches to techniques like throttling, debouncing, polling."