@travetto/worker 3.0.0-rc.7 → 3.0.0-rc.8
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/README.md +2 -3
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ import { WorkPool, WorkUtil, IterableWorkSet } from '@travetto/worker';
|
|
|
122
122
|
export async function main(): Promise<void> {
|
|
123
123
|
const pool = new WorkPool(() =>
|
|
124
124
|
WorkUtil.spawnedWorker<{ data: string }, number>(
|
|
125
|
-
() => ExecUtil.spawn('trv', ['main', '
|
|
125
|
+
() => ExecUtil.spawn('trv', ['main', '@travetto/worker/doc/spawned.ts']),
|
|
126
126
|
ch => ch.once('ready'), // Wait for child to indicate it is ready
|
|
127
127
|
async (channel, inp) => {
|
|
128
128
|
const res = channel.once('response'); // Register response listener
|
|
@@ -162,12 +162,11 @@ export async function main(): Promise<void> {
|
|
|
162
162
|
|
|
163
163
|
**Terminal: Output**
|
|
164
164
|
```bash
|
|
165
|
-
$ trv main
|
|
165
|
+
$ trv main doc/spawner.ts
|
|
166
166
|
|
|
167
167
|
Request complete { input: 1, output: 2 }
|
|
168
168
|
Request complete { input: 2, output: 4 }
|
|
169
169
|
Request complete { input: 3, output: 6 }
|
|
170
170
|
Request complete { input: 4, output: 8 }
|
|
171
171
|
Request complete { input: 5, output: 10 }
|
|
172
|
-
[s[r[u
|
|
173
172
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/worker",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.8",
|
|
4
4
|
"description": "Process management utilities, with a focus on inter-process communication",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"exec",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"directory": "module/worker"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/base": "^3.0.0-rc.
|
|
29
|
-
"@types/generic-pool": "^3.1.11",
|
|
28
|
+
"@travetto/base": "^3.0.0-rc.8",
|
|
30
29
|
"generic-pool": "^3.9.0"
|
|
31
30
|
},
|
|
32
31
|
"travetto": {
|