Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

asyncrify

superbrobenji8MIT1.1.2TypeScript support: included

A simple queue for executing promises concurrently. You can set timeouts, max concurrency as well as retries

queue, timeout, timeouts, retry, retries, list, promises, promise, async, await, throttle, concurrency, concurrent, wait, max, limit

readme

Welcome to asyncrify 👋

Version Documentation Maintenance License: MIT Twitter: superbrobenji

A simple queue for executing promises concurrently. You can set timeouts, max concurrency as well as retry

🏠 Homepage

Install

npm i asyncrify

Usage

import Queue from 'asyncrify'
const queue = new Queue()
queue.add(() => new Promise(
  (resolve) => setTimeout(resolve, 200)),
  (res) => {
    //handle result
  },
  (err) => {
    //handle err
  })

Run tests

npm run test

author

👤 Benjamin Swanepoel

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 benjamin swanepoel.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator