node-xxhash icon indicating copy to clipboard operation
node-xxhash copied to clipboard

Support worker thread, fix #26

Open yuche opened this issue 5 years ago • 0 comments

Following code should work:

// index.js
const xxhash = require('xxhash');
const { Worker } = require('worker_threads');
const worker = new Worker('./worker.js');

// worker.js
const xxhash = require('xxhash');

ref: https://github.com/nodejs/nan/pull/792

fix #26

yuche avatar Aug 05 '20 06:08 yuche