Initial commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dinlo
2026-05-31 18:45:31 +08:00
commit e0a986eb30
1018 changed files with 615974 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Promise-Queue
Promise queue with a nice API.
### Installation
```
npm install --save sb-promise-queue
```
## API
```js
interface Options {
concurrency?: number
}
class PromiseQueue {
constructor(options: Options = {concurrency: 1});
clear()
onIdle(callback: Function): Function
// call the return value function to remove listener
waitTillIdle(): Promise<void>
add(callback: Function)
}
export { PromiseQueue }
```
## License
The contents of this repository/package are licensed under the terms of The MIT License. See the LICENSE file for more info.