@zimtsui/freeseq 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +165 -0
- package/README.md +24 -0
- package/build/exports.d.ts +3 -0
- package/build/exports.js +4 -0
- package/build/exports.js.map +1 -0
- package/build/freeseq.d.ts +27 -0
- package/build/freeseq.js +76 -0
- package/build/freeseq.js.map +1 -0
- package/build/test.d.ts +1 -0
- package/build/test.js +112 -0
- package/build/test.js.map +1 -0
- package/build/thread.d.ts +15 -0
- package/build/thread.js +30 -0
- package/build/thread.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/worker.d.ts +11 -0
- package/build/worker.js +24 -0
- package/build/worker.js.map +1 -0
- package/package.json +27 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# FreeSeq
|
|
2
|
+
|
|
3
|
+
为了在前端用时序图展示后端多线程任务的进度,FreeSeq 用于在后端向前端实时传输线程 fork join 时间。
|
|
4
|
+
|
|
5
|
+
## Concepts
|
|
6
|
+
|
|
7
|
+
- 每一个 `Thread` 代表前端时序图中的每一条生命线。
|
|
8
|
+
- 每一个 `Worker` 代表后端的一个协程。
|
|
9
|
+
|
|
10
|
+
每个时刻,每个 `Worker` 在且仅在一个 `Thread` 上工作。
|
|
11
|
+
|
|
12
|
+
- `freeseq.fork` 用于将当前 `Worker` 所在的 `Thread` 分叉出一个新的 `Thread`。
|
|
13
|
+
|
|
14
|
+
这在前端时序图中表现为一条新的生命线以及一条从当前生命线指向新生命线的消息线。
|
|
15
|
+
|
|
16
|
+
- `freeseq.join` 用于将另一个 `Thread` 聚合到当前 `Worker` 所在的 `Thread` 上。
|
|
17
|
+
|
|
18
|
+
这在前端时序图中表现为另一条生命线从此刻开始进入静息状态以及一条从它指向当前生命线的消息线。
|
|
19
|
+
|
|
20
|
+
- `Worker.exec` 使当前 `Worker` 离开所在 `Thread` 前往另一个 `Thread` 去工作。
|
|
21
|
+
|
|
22
|
+
这在前端时序图中表现为从此刻开始当前生命线进入静息状态,另一条生命线从此刻开始进入活跃状态。
|
|
23
|
+
|
|
24
|
+
`FreeSeq` 只不过是 `onfork` 和 `onjoin` 监听器的一个 wrapper。如果创建两个 FreeSeq 实例,它们获取到的线程状态是共享的。
|
package/build/exports.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Thread } from './thread.ts';
|
|
2
|
+
export type FreeSeq = FreeSeq.Instance;
|
|
3
|
+
export declare namespace FreeSeq {
|
|
4
|
+
function create(onfork: (slave: Thread, master: Thread) => void, onjoin: (joinee: Thread, joiner: Thread) => void): Instance;
|
|
5
|
+
class Instance {
|
|
6
|
+
protected onfork: (slave: Thread, master: Thread) => void;
|
|
7
|
+
protected onjoin: (joinee: Thread, joiner: Thread) => void;
|
|
8
|
+
constructor(onfork: (slave: Thread, master: Thread) => void, onjoin: (joinee: Thread, joiner: Thread) => void);
|
|
9
|
+
protected forkAsync<T>(name: string, f: () => T): Thread.Promise<Awaited<T>>;
|
|
10
|
+
protected forkSync(name: string): Thread;
|
|
11
|
+
fork(name: string): Thread;
|
|
12
|
+
fork<T>(name: string, f: () => T): Thread.Promise<Awaited<T>>;
|
|
13
|
+
protected spawnAsync<T>(name: string, f: () => T): Thread.Promise<Awaited<T>>;
|
|
14
|
+
protected spawnSync(name: string): Thread;
|
|
15
|
+
spawn<T>(name: string, f: () => T): Thread.Promise<Awaited<T>>;
|
|
16
|
+
spawn(name: string): Thread;
|
|
17
|
+
protected joinAsync<T>(promise: Thread.Promise<T>): PromiseLike<T>;
|
|
18
|
+
protected joinSync(joinee: Thread): void;
|
|
19
|
+
/**
|
|
20
|
+
* @throws may throw synchronously if `onjoin` throws.
|
|
21
|
+
*/
|
|
22
|
+
join<T>(promise: Thread.Promise<T>): PromiseLike<T>;
|
|
23
|
+
join(joinee: Thread): void;
|
|
24
|
+
selfjoin(joinee: Thread): void;
|
|
25
|
+
masterjoin(slave: Thread): void;
|
|
26
|
+
}
|
|
27
|
+
}
|
package/build/freeseq.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Thread } from "./thread.js";
|
|
2
|
+
import { Worker } from "./worker.js";
|
|
3
|
+
export var FreeSeq;
|
|
4
|
+
(function (FreeSeq) {
|
|
5
|
+
function create(onfork, onjoin) {
|
|
6
|
+
return new Instance(onfork, onjoin);
|
|
7
|
+
}
|
|
8
|
+
FreeSeq.create = create;
|
|
9
|
+
class Instance {
|
|
10
|
+
onfork;
|
|
11
|
+
onjoin;
|
|
12
|
+
constructor(onfork, onjoin) {
|
|
13
|
+
this.onfork = onfork;
|
|
14
|
+
this.onjoin = onjoin;
|
|
15
|
+
}
|
|
16
|
+
forkAsync(name, f) {
|
|
17
|
+
const child = this.forkSync(name);
|
|
18
|
+
const promise = Worker.fork(child, async () => await f());
|
|
19
|
+
return Thread.Promise.transform(promise, child);
|
|
20
|
+
}
|
|
21
|
+
forkSync(name) {
|
|
22
|
+
const master = Worker.getThread();
|
|
23
|
+
const slave = Thread.fork(name, master);
|
|
24
|
+
this.onfork(slave, master);
|
|
25
|
+
return slave;
|
|
26
|
+
}
|
|
27
|
+
fork(name, f) {
|
|
28
|
+
if (f)
|
|
29
|
+
return this.forkAsync(name, f);
|
|
30
|
+
else
|
|
31
|
+
return this.forkSync(name);
|
|
32
|
+
}
|
|
33
|
+
spawnAsync(name, f) {
|
|
34
|
+
const child = this.spawnSync(name);
|
|
35
|
+
const promise = Worker.fork(child, async () => await f());
|
|
36
|
+
return Thread.Promise.transform(promise, child);
|
|
37
|
+
}
|
|
38
|
+
spawnSync(name) {
|
|
39
|
+
const master = Thread.ROOT;
|
|
40
|
+
const slave = Thread.fork(name, master);
|
|
41
|
+
this.onfork(slave, master);
|
|
42
|
+
return slave;
|
|
43
|
+
}
|
|
44
|
+
spawn(name, f) {
|
|
45
|
+
if (f)
|
|
46
|
+
return this.spawnAsync(name, f);
|
|
47
|
+
else
|
|
48
|
+
return this.spawnSync(name);
|
|
49
|
+
}
|
|
50
|
+
joinAsync(promise) {
|
|
51
|
+
return promise.finally(() => this.joinSync(promise.thread));
|
|
52
|
+
}
|
|
53
|
+
joinSync(joinee) {
|
|
54
|
+
const joiner = Worker.getThread();
|
|
55
|
+
this.onjoin(joinee, joiner);
|
|
56
|
+
}
|
|
57
|
+
join(promiseOrJoinee) {
|
|
58
|
+
if (promiseOrJoinee instanceof Thread.Promise)
|
|
59
|
+
return this.joinAsync(promiseOrJoinee);
|
|
60
|
+
else
|
|
61
|
+
return this.joinSync(promiseOrJoinee);
|
|
62
|
+
}
|
|
63
|
+
selfjoin(joinee) {
|
|
64
|
+
this.onjoin(joinee, joinee);
|
|
65
|
+
}
|
|
66
|
+
masterjoin(slave) {
|
|
67
|
+
const master = Thread.masters.get(slave);
|
|
68
|
+
if (master)
|
|
69
|
+
this.onjoin(slave, master);
|
|
70
|
+
else
|
|
71
|
+
return this.selfjoin(slave);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
FreeSeq.Instance = Instance;
|
|
75
|
+
})(FreeSeq || (FreeSeq = {}));
|
|
76
|
+
//# sourceMappingURL=freeseq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freeseq.js","sourceRoot":"","sources":["../src/freeseq.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,MAAM,KAAW,OAAO,CAmFvB;AAnFD,WAAiB,OAAO;IACpB,SAAgB,MAAM,CAClB,MAA+C,EAC/C,MAAgD;QAEhD,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;IALe,cAAM,SAKrB,CAAA;IAED,MAAa,QAAQ;QAEH;QACA;QAFd,YACc,MAA+C,EAC/C,MAAgD;YADhD,WAAM,GAAN,MAAM,CAAyC;YAC/C,WAAM,GAAN,MAAM,CAA0C;QAC3D,CAAC;QAEM,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 +1 @@
|
|
|
1
|
+
export {};
|
package/build/test.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import { FreeSeq } from "./freeseq.js";
|
|
3
|
+
import { Thread } from "./thread.js";
|
|
4
|
+
import { Worker } from "./worker.js";
|
|
5
|
+
test.serial('Thread.fork records the master thread', (t) => {
|
|
6
|
+
const master = Thread.fork('master', Thread.ROOT);
|
|
7
|
+
const slave = Thread.fork('slave', master);
|
|
8
|
+
t.is(Thread.masters.get(slave), master);
|
|
9
|
+
t.is(slave.name, 'slave');
|
|
10
|
+
t.true(slave.id > master.id);
|
|
11
|
+
});
|
|
12
|
+
test.serial('Worker.fork and Worker.exec keep thread state inside async context', async (t) => {
|
|
13
|
+
const parent = Thread.fork('parent', Thread.ROOT);
|
|
14
|
+
const child = Thread.fork('child', parent);
|
|
15
|
+
t.is(Worker.getThread(), Thread.ROOT);
|
|
16
|
+
await Worker.fork(parent, async () => {
|
|
17
|
+
t.is(Worker.getThread(), parent);
|
|
18
|
+
await Promise.resolve();
|
|
19
|
+
t.is(Worker.getThread(), parent);
|
|
20
|
+
Worker.exec(child);
|
|
21
|
+
t.is(Worker.getThread(), child);
|
|
22
|
+
await Promise.resolve();
|
|
23
|
+
t.is(Worker.getThread(), child);
|
|
24
|
+
});
|
|
25
|
+
t.is(Worker.getThread(), Thread.ROOT);
|
|
26
|
+
});
|
|
27
|
+
test.serial('FreeSeq.fork runs work on a child thread and joins back to the caller thread', async (t) => {
|
|
28
|
+
const events = [];
|
|
29
|
+
const freeseq = FreeSeq.create((slave, master) => events.push(`fork:${master.name}->${slave.name}`), (joinee, joiner) => events.push(`join:${joinee.name}->${joiner.name}`));
|
|
30
|
+
const parent = Thread.fork('parent', Thread.ROOT);
|
|
31
|
+
await Worker.fork(parent, async () => {
|
|
32
|
+
const promise = freeseq.fork('child', async () => {
|
|
33
|
+
t.is(Worker.getThread().name, 'child');
|
|
34
|
+
await Promise.resolve();
|
|
35
|
+
t.is(Worker.getThread().name, 'child');
|
|
36
|
+
return Worker.getThread().name;
|
|
37
|
+
});
|
|
38
|
+
t.is(Thread.masters.get(promise.thread), parent);
|
|
39
|
+
t.is(await freeseq.join(promise), 'child');
|
|
40
|
+
t.is(Worker.getThread(), parent);
|
|
41
|
+
});
|
|
42
|
+
t.deepEqual(events, [
|
|
43
|
+
'fork:parent->child',
|
|
44
|
+
'join:child->parent',
|
|
45
|
+
]);
|
|
46
|
+
});
|
|
47
|
+
test.serial('FreeSeq.spawn always uses the root thread as master', async (t) => {
|
|
48
|
+
const events = [];
|
|
49
|
+
const freeseq = FreeSeq.create((slave, master) => events.push(`fork:${master.name}->${slave.name}`), (joinee, joiner) => events.push(`join:${joinee.name}->${joiner.name}`));
|
|
50
|
+
const parent = Thread.fork('parent', Thread.ROOT);
|
|
51
|
+
await Worker.fork(parent, async () => {
|
|
52
|
+
const promise = freeseq.spawn('detached', async () => Worker.getThread().name);
|
|
53
|
+
t.is(Thread.masters.get(promise.thread), Thread.ROOT);
|
|
54
|
+
t.is(await freeseq.join(promise), 'detached');
|
|
55
|
+
});
|
|
56
|
+
t.deepEqual(events, [
|
|
57
|
+
'fork:root->detached',
|
|
58
|
+
'join:detached->parent',
|
|
59
|
+
]);
|
|
60
|
+
});
|
|
61
|
+
test.serial('FreeSeq sync overloads return threads and emit join events directly', (t) => {
|
|
62
|
+
const events = [];
|
|
63
|
+
const freeseq = FreeSeq.create((slave, master) => events.push(`fork:${master.name}->${slave.name}`), (joinee, joiner) => events.push(`join:${joinee.name}->${joiner.name}`));
|
|
64
|
+
const parent = Thread.fork('parent', Thread.ROOT);
|
|
65
|
+
Worker.fork(parent, () => {
|
|
66
|
+
const forked = freeseq.fork('child');
|
|
67
|
+
const spawned = freeseq.spawn('detached');
|
|
68
|
+
t.is(Thread.masters.get(forked), parent);
|
|
69
|
+
t.is(Thread.masters.get(spawned), Thread.ROOT);
|
|
70
|
+
freeseq.join(forked);
|
|
71
|
+
freeseq.join(spawned);
|
|
72
|
+
});
|
|
73
|
+
t.deepEqual(events, [
|
|
74
|
+
'fork:parent->child',
|
|
75
|
+
'fork:root->detached',
|
|
76
|
+
'join:child->parent',
|
|
77
|
+
'join:detached->parent',
|
|
78
|
+
]);
|
|
79
|
+
});
|
|
80
|
+
test.serial('FreeSeq.join joins even when the task rejects', async (t) => {
|
|
81
|
+
const events = [];
|
|
82
|
+
const freeseq = FreeSeq.create(() => { }, (joinee, joiner) => events.push(`join:${joinee.name}->${joiner.name}`));
|
|
83
|
+
const parent = Thread.fork('parent', Thread.ROOT);
|
|
84
|
+
await Worker.fork(parent, async () => {
|
|
85
|
+
const promise = freeseq.fork('child', async () => {
|
|
86
|
+
throw new Error('boom');
|
|
87
|
+
});
|
|
88
|
+
await t.throwsAsync(async () => await freeseq.join(promise), {
|
|
89
|
+
message: 'boom',
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
t.deepEqual(events, ['join:child->parent']);
|
|
93
|
+
});
|
|
94
|
+
test.serial('FreeSeq selfjoin and masterjoin use the expected joiner thread', (t) => {
|
|
95
|
+
const events = [];
|
|
96
|
+
const freeseq = FreeSeq.create(() => { }, (joinee, joiner) => events.push(`join:${joinee.name}->${joiner.name}`));
|
|
97
|
+
const master = Thread.fork('master', Thread.ROOT);
|
|
98
|
+
const slave = Thread.fork('slave', master);
|
|
99
|
+
const orphan = {
|
|
100
|
+
name: 'orphan',
|
|
101
|
+
id: ++Thread.count,
|
|
102
|
+
};
|
|
103
|
+
freeseq.selfjoin(slave);
|
|
104
|
+
freeseq.masterjoin(slave);
|
|
105
|
+
freeseq.masterjoin(orphan);
|
|
106
|
+
t.deepEqual(events, [
|
|
107
|
+
'join:slave->slave',
|
|
108
|
+
'join:slave->master',
|
|
109
|
+
'join:orphan->orphan',
|
|
110
|
+
]);
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":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AE,MAAM;SAClB,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,MAAM,CAAC,gEAAgE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChF,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAC1B,GAAG,EAAE,GAAE,CAAC,EACR,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE,CAAC,CACzE,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG;QACX,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK;KACrB,CAAC;IAEF,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxB,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAE3B,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE;QAChB,mBAAmB;QACnB,oBAAoB;QACpB,qBAAqB;KACxB,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Thread {
|
|
2
|
+
name: string;
|
|
3
|
+
id: number;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace Thread {
|
|
6
|
+
let count: number;
|
|
7
|
+
const ROOT: Thread;
|
|
8
|
+
const masters: WeakMap<Thread, Thread>;
|
|
9
|
+
class Promise<T> extends globalThis.Promise<T> {
|
|
10
|
+
thread: Thread;
|
|
11
|
+
protected constructor(executor: ConstructorParameters<typeof globalThis.Promise<T>>[0], thread: Thread);
|
|
12
|
+
static transform<T>(promise: globalThis.Promise<T>, thread: Thread): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
function fork(name: string, master: Thread): Thread;
|
|
15
|
+
}
|
package/build/thread.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export var Thread;
|
|
2
|
+
(function (Thread) {
|
|
3
|
+
Thread.count = 0;
|
|
4
|
+
Thread.ROOT = {
|
|
5
|
+
name: 'root',
|
|
6
|
+
id: ++Thread.count,
|
|
7
|
+
};
|
|
8
|
+
Thread.masters = new WeakMap();
|
|
9
|
+
class Promise extends globalThis.Promise {
|
|
10
|
+
thread;
|
|
11
|
+
constructor(executor, thread) {
|
|
12
|
+
super(executor);
|
|
13
|
+
this.thread = thread;
|
|
14
|
+
}
|
|
15
|
+
static transform(promise, thread) {
|
|
16
|
+
return new Promise((resolve, reject) => promise.then(resolve, reject), thread);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
Thread.Promise = Promise;
|
|
20
|
+
function fork(name, master) {
|
|
21
|
+
const slave = {
|
|
22
|
+
name,
|
|
23
|
+
id: ++Thread.count,
|
|
24
|
+
};
|
|
25
|
+
Thread.masters.set(slave, master);
|
|
26
|
+
return slave;
|
|
27
|
+
}
|
|
28
|
+
Thread.fork = fork;
|
|
29
|
+
})(Thread || (Thread = {}));
|
|
30
|
+
//# sourceMappingURL=thread.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.js","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,MAAM,CA8BtB;AA9BD,WAAiB,MAAM;IACR,YAAK,GAAG,CAAC,CAAC;IACR,WAAI,GAAW;QACxB,IAAI,EAAE,MAAM;QACZ,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK;KACrB,CAAC;IAEW,cAAO,GAAG,IAAI,OAAO,EAAkB,CAAC;IAErD,MAAa,OAAW,SAAQ,UAAU,CAAC,OAAU;QAGtC;QAFX,YACI,QAAgE,EACzD,MAAc;YAErB,KAAK,CAAC,QAAQ,CAAC,CAAC;YAFT,WAAM,GAAN,MAAM,CAAQ;QAGzB,CAAC;QAEM,MAAM,CAAC,SAAS,CAAI,OAA8B,EAAE,MAAc;YACrE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;QACtF,CAAC;KACJ;IAXY,cAAO,UAWnB,CAAA;IAED,SAAgB,IAAI,CAAC,IAAY,EAAE,MAAc;QAC7C,MAAM,KAAK,GAAW;YAClB,IAAI;YACJ,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK;SACrB,CAAC;QACF,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAClC,OAAO,KAAK,CAAC;IACjB,CAAC;IAPe,WAAI,OAOnB,CAAA;AACL,CAAC,EA9BgB,MAAM,KAAN,MAAM,QA8BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../../usr/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/thread.ts","../src/worker.ts","../src/freeseq.ts","../src/exports.ts","../node_modules/ava/types/assertions.d.cts","../node_modules/ava/types/subscribable.d.cts","../node_modules/ava/types/try-fn.d.cts","../node_modules/ava/types/test-fn.d.cts","../node_modules/ava/entrypoints/main.d.mts","../src/test.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[98,146,163,164],[98,143,144,146,163,164],[98,145,146,163,164],[146,163,164],[98,146,151,163,164,181],[98,146,147,152,157,163,164,166,178,189],[98,146,147,148,157,163,164,166],[93,94,95,98,146,163,164],[98,146,149,163,164,190],[98,146,150,151,158,163,164,167],[98,146,151,163,164,178,186],[98,146,152,154,157,163,164,166],[98,145,146,153,163,164],[98,146,154,155,163,164],[98,146,156,157,163,164],[98,145,146,157,163,164],[98,146,157,158,159,163,164,178,189],[98,146,157,158,159,163,164,173,178,181],[98,139,146,154,157,160,163,164,166,178,189],[98,146,157,158,160,161,163,164,166,178,186,189],[98,146,160,162,163,164,178,186,189],[96,97,98,99,100,101,102,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195],[98,146,157,163,164],[98,146,163,164,165,189],[98,146,154,157,163,164,166,178],[98,146,163,164,167],[98,146,163,164,168],[98,145,146,163,164,169],[98,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195],[98,146,163,164,171],[98,146,163,164,172],[98,146,157,163,164,173,174],[98,146,163,164,173,175,190,192],[98,146,158,163,164],[98,146,157,163,164,178,179,181],[98,146,163,164,180,181],[98,146,163,164,178,179],[98,146,163,164,181],[98,146,163,164,182],[98,143,146,163,164,178,183,189],[98,146,157,163,164,184,185],[98,146,163,164,184,185],[98,146,151,163,164,166,178,186],[98,146,163,164,187],[98,146,163,164,166,188],[98,146,160,163,164,172,189],[98,146,151,163,164,190],[98,146,163,164,178,191],[98,146,163,164,165,192],[98,146,163,164,193],[98,139,146,163,164],[98,139,146,157,159,163,164,169,178,181,189,191,192,194],[98,146,163,164,178,195],[86,87,88,89,98,146,163,164],[86,87,88,98,146,163,164],[89,98,146,163,164],[98,111,115,146,163,164,189],[98,111,146,163,164,178,189],[98,106,146,163,164],[98,108,111,146,163,164,186,189],[98,146,163,164,166,186],[98,146,163,164,196],[98,106,146,163,164,196],[98,108,111,146,163,164,166,189],[98,103,104,107,110,146,157,163,164,178,189],[98,111,118,146,163,164],[98,103,109,146,163,164],[98,111,132,133,146,163,164],[98,107,111,146,163,164,181,189,196],[98,132,146,163,164,196],[98,105,106,146,163,164,196],[98,111,146,163,164],[98,105,106,107,108,109,110,111,112,113,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,133,134,135,136,137,138,146,163,164],[98,111,126,146,163,164],[98,111,118,119,146,163,164],[98,109,111,119,120,146,163,164],[98,110,146,163,164],[98,103,106,111,146,163,164],[98,111,115,119,120,146,163,164],[98,115,146,163,164],[98,109,111,114,146,163,164,189],[98,103,108,111,118,146,163,164],[98,146,163,164,178],[98,106,111,132,146,163,164,194,196],[82,83,84,98,146,163,164],[82,83,98,146,163,164],[82,83,84,90,98,146,163,164],[82,98,145,146,163,164]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"917b3edca038be271c23787ee8b69a33b3e6a009555cc7ac2bbf86381a2b91a8","signature":"2486e16b5cebe8f71b5acfd6b8e29390aa292d829ef4c792f90a15a2b10271a6"},{"version":"3a0a25fac801277458e161b038962d6a15df1ec4e199f31211a2acdf65208a7f","signature":"042b941143af08658656648c5aac0ded96714beee0478a47a40a044448c3e1ce"},{"version":"b1a217b4cf35b1687d70017509527f5a9ca0483212b56d1e41d6cba60ec263e4","signature":"d85b17f3b58b2b7201ceb6a746ae653ed1c187c24bc5f3883b68c45a3de2747b"},"d3099cbcd42b388e5ac4f4f5c6b3e0045cff3b102b7c03c947263686dc3e95fa",{"version":"d8750101c0f4631f1632897699ef075c5fc684df5eeee3832c993c948b334dbe","impliedFormat":1},{"version":"00b72e597dcd6ff7bf772918c78c41dc7c68e239af658cf452bff645ebdc485d","impliedFormat":1},{"version":"17b183b69a3dd3cca2505cee7ff70501c574343ad49a385c9acb5b5299e1ba73","impliedFormat":1},{"version":"65971ae48adee73c3f604209b64a4e34e319d7ce25c2ea452cc15b05a2b43db5","impliedFormat":1},{"version":"de8391b91c499acbc09df8d9ba114dc8c44456d54e81ed01211c32a1d6ad94fb","impliedFormat":99},{"version":"4c4fa5e1592159f1673ac55dd01f14a6c68db7ae457f11853c6b675ced4c0d35","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[82,85],91],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"experimentalDecorators":true,"module":200,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"outDir":"./","rewriteRelativeImportExtensions":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[92,1],[143,2],[144,2],[145,3],[98,4],[146,5],[147,6],[148,7],[93,1],[96,8],[94,1],[95,1],[149,9],[150,10],[151,11],[152,12],[153,13],[154,14],[155,14],[156,15],[157,16],[158,17],[159,18],[99,1],[97,1],[160,19],[161,20],[162,21],[196,22],[163,23],[164,1],[165,24],[166,25],[167,26],[168,27],[169,28],[170,29],[171,30],[172,31],[173,32],[174,32],[175,33],[176,1],[177,34],[178,35],[180,36],[179,37],[181,38],[182,39],[183,40],[184,41],[185,42],[186,43],[187,44],[188,45],[189,46],[190,47],[191,48],[192,49],[193,50],[100,1],[101,1],[102,1],[140,51],[141,1],[142,1],[194,52],[195,53],[90,54],[86,1],[87,1],[89,55],[88,56],[118,57],[128,58],[117,57],[138,59],[109,60],[108,61],[137,62],[131,63],[136,64],[111,65],[125,66],[110,67],[134,68],[106,69],[105,62],[135,70],[107,71],[112,72],[113,1],[116,72],[103,1],[139,73],[129,74],[120,75],[121,76],[123,77],[119,78],[122,79],[132,62],[114,80],[115,81],[124,82],[104,83],[127,74],[126,72],[130,1],[133,84],[85,85],[84,86],[91,87],[82,1],[83,88],[80,1],[81,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[25,1],[4,1],[26,1],[30,1],[27,1],[28,1],[29,1],[31,1],[32,1],[33,1],[5,1],[34,1],[35,1],[36,1],[37,1],[6,1],[41,1],[38,1],[39,1],[40,1],[42,1],[7,1],[43,1],[48,1],[49,1],[44,1],[45,1],[46,1],[47,1],[8,1],[53,1],[50,1],[51,1],[52,1],[54,1],[9,1],[55,1],[56,1],[57,1],[59,1],[58,1],[60,1],[61,1],[10,1],[62,1],[63,1],[64,1],[11,1],[65,1],[66,1],[67,1],[68,1],[69,1],[1,1],[70,1],[71,1],[12,1],[75,1],[73,1],[78,1],[77,1],[72,1],[76,1],[74,1],[79,1]],"latestChangedDtsFile":"./test.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Thread } from './thread.ts';
|
|
2
|
+
export interface Worker {
|
|
3
|
+
thread: Thread;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace Worker {
|
|
6
|
+
const ROOT: Worker;
|
|
7
|
+
function getWorker(): Worker;
|
|
8
|
+
function getThread(): Thread;
|
|
9
|
+
function exec(thread: Thread): void;
|
|
10
|
+
function fork<T>(thread: Thread, f: () => T): T;
|
|
11
|
+
}
|
package/build/worker.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Thread } from "./thread.js";
|
|
2
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
+
export var Worker;
|
|
4
|
+
(function (Worker) {
|
|
5
|
+
Worker.ROOT = { thread: Thread.ROOT };
|
|
6
|
+
const als = new AsyncLocalStorage();
|
|
7
|
+
function getWorker() {
|
|
8
|
+
return als.getStore() ?? Worker.ROOT;
|
|
9
|
+
}
|
|
10
|
+
Worker.getWorker = getWorker;
|
|
11
|
+
function getThread() {
|
|
12
|
+
return Worker.getWorker().thread;
|
|
13
|
+
}
|
|
14
|
+
Worker.getThread = getThread;
|
|
15
|
+
function exec(thread) {
|
|
16
|
+
Worker.getWorker().thread = thread;
|
|
17
|
+
}
|
|
18
|
+
Worker.exec = exec;
|
|
19
|
+
function fork(thread, f) {
|
|
20
|
+
return als.run({ thread }, f);
|
|
21
|
+
}
|
|
22
|
+
Worker.fork = fork;
|
|
23
|
+
})(Worker || (Worker = {}));
|
|
24
|
+
//# sourceMappingURL=worker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAOrD,MAAM,KAAW,MAAM,CAuBtB;AAvBD,WAAiB,MAAM;IACN,WAAI,GAAW,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACpD,MAAM,GAAG,GAAG,IAAI,iBAAiB,EAAU,CAAC;IAE5C,SAAgB,SAAS;QACrB,OAAO,GAAG,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC;IACzC,CAAC;IAFe,gBAAS,YAExB,CAAA;IAED,SAAgB,SAAS;QACrB,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC;IACrC,CAAC;IAFe,gBAAS,YAExB,CAAA;IAED,SAAgB,IAAI,CAAC,MAAc;QAC/B,MAAM,CAAC,SAAS,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;IACvC,CAAC;IAFe,WAAI,OAEnB,CAAA;IAED,SAAgB,IAAI,CAChB,MAAc,EACd,CAAU;QAEV,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;IALe,WAAI,OAKnB,CAAA;AAEL,CAAC,EAvBgB,MAAM,KAAN,MAAM,QAuBtB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zimtsui/freeseq",
|
|
3
|
+
"exports": "./build/exports.js",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "ava ./build/test.js",
|
|
8
|
+
"build": "tsc -b ./src/tsconfig.json",
|
|
9
|
+
"clean": "rm -rf ./build",
|
|
10
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/zimtsui/freeseq.git"
|
|
15
|
+
},
|
|
16
|
+
"author": "Zim",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"ava": "^7.0.0"
|
|
19
|
+
},
|
|
20
|
+
"ava": {
|
|
21
|
+
"failWithoutAssertions": false
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@types/node": "^22.19.13"
|
|
25
|
+
},
|
|
26
|
+
"version": "0.0.1"
|
|
27
|
+
}
|