Constructor
new Worker(method)
Parameters:
Name | Type | Description |
---|---|---|
method |
function | Pure function. |
- Source:
Methods
(async) compute(input) → {String}
Handle a task.
Parameters:
Name | Type | Description |
---|---|---|
input |
Vector | Input vector. |
- Source:
Returns:
Outcome of the requested job.
- Type
- String