Skip to content

[Feature Request] Add the ability to update concurrency on the fly #5

Description

@quadratz

With p-limit, we can update the concurrency dynamically on the fly. For example:

const queue = pLimit(4) // Starts at 4

queue(() => fetch(url))

// Drop the limit for slow networks
queue.concurrency = 2 

// Increase the limit for fast networks
queue.concurrency = 8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions