@@ -1948,9 +1948,9 @@ Web/JS APIs.
1948
1948
1949
1949
###### 🧵 ` thread.spawn_ref `
1950
1950
1951
- | Synopsis | |
1952
- | -------------------------- | --------------------------------------------------------- |
1953
- | Approximate WIT signature | ` func<FuncT>(f: FuncT, c: FuncT.params[0]) -> bool ` |
1951
+ | Synopsis | |
1952
+ | -------------------------- | ---------------------------------------------------------- |
1953
+ | Approximate WIT signature | ` func<FuncT>(f: FuncT, c: FuncT.params[0]) -> bool ` |
1954
1954
| Canonical ABI signature | ` [f:(ref null (shared (func (param i32))) c:i32] -> [i32] ` |
1955
1955
1956
1956
The ` thread.spawn_ref ` built-in spawns a new thread by invoking the shared
@@ -1970,9 +1970,9 @@ future, the type of `c` is currently hard-coded to always be `i32`.
1970
1970
1971
1971
The ` thread.spawn_indirect ` built-in spawns a new thread by retrieving the
1972
1972
shared function ` f ` from a table using index ` i ` and traps if the type of ` f ` is
1973
- not equal to ` FuncT ` (much like the ` call_indirect `
1974
- core instruction). Once ` f ` is retrieved, this built-in operates like
1975
- ` thread.spawn_ref ` above, including the limitations on ` f ` 's parameters.
1973
+ not equal to ` FuncT ` (much like the ` call_indirect ` core instruction). Once ` f `
1974
+ is retrieved, this built-in operates like ` thread.spawn_ref ` above, including
1975
+ the limitations on ` f ` 's parameters.
1976
1976
1977
1977
(See also [ ` canon_thread_spawn_indirect ` ] in the Canonical ABI explainer.)
1978
1978
@@ -1983,14 +1983,15 @@ core instruction). Once `f` is retrieved, this built-in operates like
1983
1983
| Approximate WIT signature | ` func() -> u32 ` |
1984
1984
| Canonical ABI signature | ` [] -> [i32] ` |
1985
1985
1986
- The ` thread.available_parallelism ` built-in returns the number of threads that can be
1987
- expected to execute in parallel.
1986
+ The ` thread.available_parallelism ` built-in returns the number of threads that
1987
+ can be expected to execute in parallel.
1988
1988
1989
1989
The concept of "available parallelism" corresponds is sometimes referred to
1990
1990
as "hardware concurrency", such as in [ ` navigator.hardwareConcurrency ` ] in
1991
1991
JavaScript.
1992
1992
1993
- (See also [ ` canon_thread_available_parallelism ` ] in the Canonical ABI explainer.)
1993
+ (See also [ ` canon_thread_available_parallelism ` ] in the Canonical ABI
1994
+ explainer.)
1994
1995
1995
1996
### 🪙 Value Definitions
1996
1997
0 commit comments