Skip to content

Instantly share code, notes, and snippets.

@rvigneshw
Created September 17, 2021 13:30
Show Gist options
  • Save rvigneshw/b3553d16343717b701345c17e3c8f25a to your computer and use it in GitHub Desktop.
Save rvigneshw/b3553d16343717b701345c17e3c8f25a to your computer and use it in GitHub Desktop.
Get back data from Child process worker
worker.on('message', (processedData) => {
doSomethingElse(processedData);
worker.kill();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment