Warning:
This wiki has been archived and is now read-only.

Web Workers

From Client and Server JavaScript APIs Community Group
Jump to: navigation, search

Introduction

This API is useful to generate threads for parallel executions.

Note that it includes a synchronous method to load scripts: importScripts()

Contacts

We are looking for representatives of this HTML5 API to discuss of potentially needed updates to consider server-side implementations

Debate

Any Server-Side JavaScript context could be implemented as a remote Worker implementing the WorkerGlobalScope interface:

SSJS Implementations

Node.js

Node.js provide a different API called cluster:

A third party module with the W3C API exists: node-worker


RingoJS

An adapted version is available:


Wakanda

Worker and SharedWorker are implemented as is:

It also implement a variant called SystemWorker to launch external processes with a compatible API:


References