UNPKG
@4players/odin-common
Version:
latest (11.0.0)
11.0.0
10.3.0
10.2.0
10.1.0
10.0.0
9.6.0
9.5.1
9.5.0
9.4.0
9.3.0
9.2.0
9.1.1
9.1.0
9.0.5
9.0.4
9.0.3
9.0.2
9.0.1
9.0.0
8.3.0
8.2.0
8.1.0
8.0.5
8.0.4
8.0.3
8.0.2
8.0.1
8.0.0
7.3.4
7.3.3
7.3.2
7.3.1
7.3.0
7.2.1
7.2.0
7.1.0
7.0.0
6.0.3
6.0.2
6.0.1
6.0.0
4.1.1
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.2.0
3.1.0
3.0.0
3.0.0-beta.1
2.19.1
2.19.0
2.18.0
2.17.4
2.17.3
2.17.2
2.17.1
2.17.0
2.16.1
2.16.0
2.15.0
2.14.0
2.13.4
2.13.3
2.13.2
2.13.1
2.12.3
2.12.2
2.12.1
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.0
2.6.0
2.5.0
2.4.13
2.4.12
2.4.11
2.4.10
2.4.9
2.4.8
2.4.7
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.0
2.2.1
2.1.0
2.0.0
1.7.1
1.7.0
1.6.1
1.6.0
1.5.1
1.5.0
1.4.3
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.2
1.1.0
1.0.6
Commonly used type definitions and utility functions across ODIN web projects
www.4players.io
@4players/odin-common
/
utility
/
strand.d.ts
9 lines
(8 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
class
Strand
<T
extends
unknown
[] = []> {
private
readonly
_Tasks;
private
_Running;
private
_Values;
constructor
(
...
values
: T
); enqueue<U>(
task
:
(
...
values
: T
) =>
Promise
<U>):
Promise
<U>;
private
execute; }