UNPKG

process-worker-executor

Version:

将多进程和多线程封装为统一的 Async/Await 调用方式, 简化 IPC 消息通信的复杂性

9 lines (7 loc) 228 B
const ProcessExecutorClient = require('./ProcessExecutorClient') const [logPath, logFile] = process.argv.slice(2) const client = new ProcessExecutorClient({ logPath: logPath, logFile: logFile }) client.onInit()