uupaa.webworker.js

0.13.5 • Public • Published

WebWorker.js Build Status

npm

WebWorkers wrapper.

Document

How to use

Browser

<script src="lib/WebWorker.js"></script>
<script>

new WebWorker("./worker.js", function(err, body, param) {
    console.log(body);
}).request();

</script>

WebWorkers

importScripts("../lib/WorkerThread.js");

var worker = new WorkerThread(function(body, param) {
    worker.response();
});

/uupaa.webworker.js/

    Package Sidebar

    Install

    npm i uupaa.webworker.js

    Weekly Downloads

    32

    Version

    0.13.5

    License

    MIT

    Last publish

    Collaborators

    • uupaa