Refactor to worker version
This commit is contained in:
3
src/worker/node/onMessage.js
Normal file
3
src/worker/node/onMessage.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (worker, handler) => {
|
||||
worker.on('message', handler);
|
||||
};
|
||||
Reference in New Issue
Block a user