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

Worker from Function #49

@martindale

Description

@martindale

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)`;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions