add hw2
This commit is contained in:
9
node_modules/thread-stream/test/custom-worker.js
generated
vendored
Normal file
9
node_modules/thread-stream/test/custom-worker.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
const { parentPort } = require('worker_threads')
|
||||
|
||||
parentPort.postMessage({
|
||||
code: 'CUSTOM-WORKER-CALLED'
|
||||
})
|
||||
|
||||
require('../lib/worker')
|
||||
Reference in New Issue
Block a user