dcp-client 4.3.6 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/dcp-client-bundle.js +1 -1
- package/generated/sandbox-definitions.json +1 -1
- package/index.js +6 -0
- package/libexec/sandbox/access-lists.js +59 -38
- package/libexec/sandbox/bravojs-env.js +159 -6
- package/libexec/sandbox/calculate-capabilities.js +2 -0
- package/libexec/sandbox/pyodide-core.js +3 -0
- package/libexec/sandbox/sa-ww-simulation.js +0 -1
- package/libexec/sandbox/worktimes.js +66 -0
- package/libexec/sandbox/wrap-event-listeners.js +49 -16
- package/licenses/pyodide.LICENSE.txt +376 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -178,6 +178,24 @@ Jobs (job handles) are generally created with the `compute.for` function, which
|
|
|
178
178
|
|
|
179
179
|
An input set can be described with arguments to `compute.for()` with `RangeObject` notation or passed directly as an enumerable object (such as an array or function* generator).
|
|
180
180
|
|
|
181
|
+
|
|
182
|
+
### Worktimes
|
|
183
|
+
|
|
184
|
+
### Examples
|
|
185
|
+
run Work on the whole numbers between 1 and 10:
|
|
186
|
+
```javascript
|
|
187
|
+
job = compute.for(1, 10, Work)
|
|
188
|
+
```
|
|
189
|
+
run Work on the numbers 6, 9, 12, 15:
|
|
190
|
+
```javascript
|
|
191
|
+
job = compute.for(6, 16, 3, Work)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
run Work on the colors red, green, and blue:
|
|
195
|
+
```javascript
|
|
196
|
+
job = compute.for(["red", "green" "blue"], Work)
|
|
197
|
+
```
|
|
198
|
+
|
|
181
199
|
### Examples
|
|
182
200
|
run Work on the whole numbers between 1 and 10:
|
|
183
201
|
```javascript
|