Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Worker from Function #49

Open
martindale opened this issue May 28, 2018 · 1 comment
Open

Worker from Function #49

martindale opened this issue May 28, 2018 · 1 comment

Comments

@martindale
Copy link

Rather than relying on disk IO, it'd be convenient to pass a function as follows to construct the WebWorker:

const Worker = require('webworker');
const worker = new Worker(function (msg) {
  return `message was: "${msg}" (${msg.length} bytes)`;
});
@bhgsbatista
Copy link

Try this: https://github.com/developit/greenlet

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants