Skip to content

Instantly share code, notes, and snippets.

@navanathjadhav
Created June 18, 2022 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navanathjadhav/bcd06afbc0afd3bff4fa235fb30c6204 to your computer and use it in GitHub Desktop.
Save navanathjadhav/bcd06afbc0afd3bff4fa235fb30c6204 to your computer and use it in GitHub Desktop.
Worker.js
/*
* worker.js
*/
const { workerData, parentPort } = require("worker_threads");
console.log("This article is published on " + workerData);
parentPort.postMessage({ fileName: workerData, status: "Done" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment