google / google/zx

[Idea]: Worker pools

Open
#1,375 0 comments 0 reactions 1 assignee Claimed by @antonmedv View on GitHub
feature
Dominant language
JavaScript
Stars
45.7k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

### What's your idea?

Implement a async worker pool.

### Why is that needed? How it may be useful?

Sometimes I need to run a lot of tasks, and I split them with chunk() to batches. Will be nice to have a pool of async workers which can peekup work from a queue and start working as soon as as possible.

### Maybe you have a demo or example?

```ts
TODO
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.