summaryrefslogtreecommitdiff
path: root/lib/worker_threads.js
blob: 2fe1a872464d199997502313b26172d731370c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';

const {
  isMainThread,
  threadId,
  Worker
} = require('internal/worker');

const {
  MessagePort,
  MessageChannel
} = require('internal/worker/io');

module.exports = {
  isMainThread,
  MessagePort,
  MessageChannel,
  threadId,
  Worker,
  parentPort: null,
  workerData: null,
};