1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', {
|
4 | value: true
|
5 | });
|
6 | exports.WorkerStates =
|
7 | exports.WorkerEvents =
|
8 | exports.PARENT_MESSAGE_SETUP_ERROR =
|
9 | exports.PARENT_MESSAGE_OK =
|
10 | exports.PARENT_MESSAGE_MEM_USAGE =
|
11 | exports.PARENT_MESSAGE_CUSTOM =
|
12 | exports.PARENT_MESSAGE_CLIENT_ERROR =
|
13 | exports.CHILD_MESSAGE_MEM_USAGE =
|
14 | exports.CHILD_MESSAGE_INITIALIZE =
|
15 | exports.CHILD_MESSAGE_END =
|
16 | exports.CHILD_MESSAGE_CALL =
|
17 | void 0;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | const CHILD_MESSAGE_INITIALIZE = 0;
|
29 | exports.CHILD_MESSAGE_INITIALIZE = CHILD_MESSAGE_INITIALIZE;
|
30 | const CHILD_MESSAGE_CALL = 1;
|
31 | exports.CHILD_MESSAGE_CALL = CHILD_MESSAGE_CALL;
|
32 | const CHILD_MESSAGE_END = 2;
|
33 | exports.CHILD_MESSAGE_END = CHILD_MESSAGE_END;
|
34 | const CHILD_MESSAGE_MEM_USAGE = 3;
|
35 | exports.CHILD_MESSAGE_MEM_USAGE = CHILD_MESSAGE_MEM_USAGE;
|
36 | const PARENT_MESSAGE_OK = 0;
|
37 | exports.PARENT_MESSAGE_OK = PARENT_MESSAGE_OK;
|
38 | const PARENT_MESSAGE_CLIENT_ERROR = 1;
|
39 | exports.PARENT_MESSAGE_CLIENT_ERROR = PARENT_MESSAGE_CLIENT_ERROR;
|
40 | const PARENT_MESSAGE_SETUP_ERROR = 2;
|
41 | exports.PARENT_MESSAGE_SETUP_ERROR = PARENT_MESSAGE_SETUP_ERROR;
|
42 | const PARENT_MESSAGE_CUSTOM = 3;
|
43 | exports.PARENT_MESSAGE_CUSTOM = PARENT_MESSAGE_CUSTOM;
|
44 | const PARENT_MESSAGE_MEM_USAGE = 4;
|
45 | exports.PARENT_MESSAGE_MEM_USAGE = PARENT_MESSAGE_MEM_USAGE;
|
46 | let WorkerStates;
|
47 | exports.WorkerStates = WorkerStates;
|
48 |
|
49 | (function (WorkerStates) {
|
50 | WorkerStates['STARTING'] = 'starting';
|
51 | WorkerStates['OK'] = 'ok';
|
52 | WorkerStates['OUT_OF_MEMORY'] = 'oom';
|
53 | WorkerStates['RESTARTING'] = 'restarting';
|
54 | WorkerStates['SHUTTING_DOWN'] = 'shutting-down';
|
55 | WorkerStates['SHUT_DOWN'] = 'shut-down';
|
56 | })(WorkerStates || (exports.WorkerStates = WorkerStates = {}));
|
57 |
|
58 | let WorkerEvents;
|
59 | exports.WorkerEvents = WorkerEvents;
|
60 |
|
61 | (function (WorkerEvents) {
|
62 | WorkerEvents['STATE_CHANGE'] = 'state-change';
|
63 | })(WorkerEvents || (exports.WorkerEvents = WorkerEvents = {}));
|