UNPKG
p-queue-es5
Version:
latest (6.0.2)
6.0.2
Promise queue with concurrency control
github.com/sindresorhus/p-queue
sindresorhus/p-queue
p-queue-es5
/
dist
/
queue.d.ts
7 lines
(6 loc)
•
208 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
declare
type
RunFunction
=
() =>
Promise
<
unknown
>;
export
interface
Queue
<
Options
> {
size
:
number
;
dequeue
():
RunFunction
|
undefined
;
enqueue
(
run
:
RunFunction
,
options
?:
Options
):
void
; }