Commit a0bc232
Rename
Following the general computer-science meanings of the terms
"concurrency" and "parallelism", rename `thread.hw_concurrency` to
`thread.available_parallelism`, because it's about the number of threads
that can execute in parallel.
This differs from the existing JS API of [`navigator.hardwareConcurrency`],
so add a note mentioning the correspondence.
[`navigator.hardwareConcurrency`]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrencyhw_concurrency to available_parallelism.1 parent 03ea29d commit a0bc232
3 files changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3418 | 3418 | | |
3419 | 3419 | | |
3420 | 3420 | | |
3421 | | - | |
| 3421 | + | |
3422 | 3422 | | |
3423 | 3423 | | |
3424 | 3424 | | |
3425 | | - | |
| 3425 | + | |
3426 | 3426 | | |
3427 | 3427 | | |
3428 | 3428 | | |
3429 | 3429 | | |
3430 | 3430 | | |
3431 | | - | |
| 3431 | + | |
3432 | 3432 | | |
3433 | 3433 | | |
3434 | 3434 | | |
3435 | 3435 | | |
3436 | | - | |
| 3436 | + | |
3437 | 3437 | | |
3438 | 3438 | | |
3439 | 3439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
1425 | | - | |
| 1425 | + | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | 1428 | | |
| |||
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
1867 | | - | |
| 1867 | + | |
1868 | 1868 | | |
1869 | 1869 | | |
1870 | 1870 | | |
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
1874 | | - | |
1875 | | - | |
| 1874 | + | |
| 1875 | + | |
1876 | 1876 | | |
1877 | | - | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1878 | 1882 | | |
1879 | 1883 | | |
1880 | 1884 | | |
| |||
2702 | 2706 | | |
2703 | 2707 | | |
2704 | 2708 | | |
2705 | | - | |
| 2709 | + | |
2706 | 2710 | | |
2707 | 2711 | | |
2708 | 2712 | | |
| |||
2717 | 2721 | | |
2718 | 2722 | | |
2719 | 2723 | | |
| 2724 | + | |
| 2725 | + | |
0 commit comments