UNPKG
@etherna/sdk-js
Version:
latest (2.0.3)
2.0.3
2.0.1
1.7.2
1.7.1
1.7.0
1.6.1
1.6.0
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
Etherna SDKs for operations on the network
github.com/etherna/clients
etherna/etherna-sdk-js
@etherna/sdk-js
/
classes
/
Queue.d.ts
10 lines
•
308 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
class
Queue
{
tasks
: (
() =>
Promise
<
any
>)[];
activeTasks
:
number
;
maxConcurrentTasks
:
number
;
constructor
(
maxConcurrentTasks
?:
number
);
enqueue
(
task
:
() =>
Promise
<
any
>):
void
;
runTasks
():
Promise
<
void
>;
drain
():
Promise
<
void
>; }
//# sourceMappingURL=Queue.d.ts.map