new WebWorker(Loader, onMessage, onError)
Parameters:
Name | Type | Description |
---|---|---|
Loader |
* | a webpack worker-loader |
onMessage |
function | |
onError |
function |
- Source:
Methods
postMessage(data, id)
Sends data to the web worker.
Parameters:
Name | Type | Description |
---|---|---|
data |
* | |
id |
* |
- Source:
start()
Initializes a web worker.
- Source:
stop()
Terminates a web worker.
- Source: