0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/lib/worker_threads.js

29 lines
432 B
JavaScript
Raw Normal View History

'use strict';
const {
isMainThread,
SHARE_ENV,
threadId,
Worker
} = require('internal/worker');
const {
MessagePort,
MessageChannel,
moveMessagePortToContext,
receiveMessageOnPort
} = require('internal/worker/io');
module.exports = {
isMainThread,
MessagePort,
MessageChannel,
moveMessagePortToContext,
receiveMessageOnPort,
threadId,
SHARE_ENV,
Worker,
parentPort: null,
workerData: null,
};