Creates named Scriptable worker scopes for one or more devices.
Each worker is cloned from the current Scriptable scope and receives its
associated device through the device property.
Methods
(static) create(dev, name) → {Object}
Creates a Scriptable worker for one device.
Parameters:
| Name | Type | Description |
|---|---|---|
dev |
Device | Device assigned to the worker. |
name |
string | Worker name. |
Returns:
The created Scriptable worker.
- Type
- Object
(static) createAll(devicesopt) → {Array.<Object>}
Create workers from:
- omitted: auto uses sigma/device.getDevices()
- a device array
- a single device
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
devices |
Device | Array.<Device> |
<optional> |
Devices to wrap; defaults to all connected devices. |
Returns:
Created Scriptable workers.
- Type
- Array.<Object>