@@ -1445,7 +1445,7 @@ canon ::= ...
14451445 | (canon future.drop-readable <typeidx> (core func <id>?)) 🔀
14461446 | (canon future.drop-writable <typeidx> (core func <id>?)) 🔀
14471447 | (canon thread.index (core func <id>?)) 🧵
1448- | (canon thread.new_indirect <typeidx> <core:tableidx> (core func <id>?)) 🧵
1448+ | (canon thread.new-indirect <typeidx> <core:tableidx> (core func <id>?)) 🧵
14491449 | (canon thread.switch-to cancellable? (core func <id>?)) 🧵
14501450 | (canon thread.suspend cancellable? (core func <id>?)) 🧵
14511451 | (canon thread.resume-later (core func <id>?) 🧵
@@ -1454,8 +1454,8 @@ canon ::= ...
14541454 | (canon error-context.new <canonopt>* (core func <id>?)) 📝
14551455 | (canon error-context.debug-message <canonopt>* (core func <id>?)) 📝
14561456 | (canon error-context.drop (core func <id>?)) 📝
1457- | (canon thread.spawn_ref shared? <typeidx> (core func <id>?)) 🧵②
1458- | (canon thread.spawn_indirect shared? <typeidx> <core:tableidx> (core func <id>?)) 🧵②
1457+ | (canon thread.spawn-ref shared? <typeidx> (core func <id>?)) 🧵②
1458+ | (canon thread.spawn-indirect shared? <typeidx> <core:tableidx> (core func <id>?)) 🧵②
14591459 | (canon thread.available-parallelism (core func <id>?)) 🧵②
14601460```
14611461
@@ -2055,20 +2055,20 @@ For details, see [`canon_stream_drop_readable`] in the Canonical ABI explainer.
20552055| Canonical ABI signature | ` [] -> [i32] ` |
20562056
20572057The ` thread.index ` built-in returns the index of the [ current thread] in the
2058- component instance's table. While ` thread.new_indirect ` also returns the index
2058+ component instance's table. While ` thread.new-indirect ` also returns the index
20592059of newly-created threads, threads created implicitly for export calls can only
20602060learn their index via ` thread.index ` .
20612061
20622062For details, see [ ` canon_thread_index ` ] in the Canonical ABI explainer.
20632063
2064- ###### 🧵 ` thread.new_indirect `
2064+ ###### 🧵 ` thread.new-indirect `
20652065
20662066| Synopsis | |
20672067| -------------------------- | ------------------------------------------------------------- |
20682068| Approximate WIT signature | ` func<FuncT,tableidx>(fi: u32, c: FuncT.params[0]) -> thread ` |
20692069| Canonical ABI signature | ` [fi:i32 c:i32] -> [i32] ` |
20702070
2071- The ` thread.new_indirect ` built-in adds a new thread to the current component
2071+ The ` thread.new-indirect ` built-in adds a new thread to the current component
20722072instance's table, returning the index of the new thread. The function table
20732073supplied via [ ` core:tableidx ` ] is indexed by the ` fi ` operand and then
20742074dynamically checked to match the type ` FuncT ` (in the same manner as
@@ -2080,7 +2080,7 @@ Currently, `FuncT` must be `(func (param i32))` and thus `c` must always be an
20802080ABI is extended for [ memory64] and [ GC] .
20812081
20822082As explained in the [ concurrency explainer] [ waiting ] , a thread created by
2083- ` thread.new_indirect ` is initially in a suspended state and must be resumed
2083+ ` thread.new-indirect ` is initially in a suspended state and must be resumed
20842084eagerly or lazily by [ ` thread.yield-to ` ] ( #-threadyield-to ) or
20852085[ ` thread.resume-later ` ] ( #-threadresume-later ) , resp., to begin execution.
20862086
@@ -2202,30 +2202,30 @@ threads and threads implicitly created by non-`callback` `async`-lifted
22022202For details, see [ waiting] in the concurrency explainer and
22032203[ ` canon_thread_yield ` ] in the Canonical ABI explainer.
22042204
2205- ###### 🧵② ` thread.spawn_ref `
2205+ ###### 🧵② ` thread.spawn-ref `
22062206
22072207| Synopsis | |
22082208| -------------------------- | ------------------------------------------------------------------ |
22092209| Approximate WIT signature | ` func<shared?,FuncT>(f: FuncT, c: FuncT.params[0]) -> bool ` |
22102210| Canonical ABI signature | ` shared? [f:(ref null (shared (func (param i32))) c:i32] -> [i32] ` |
22112211
2212- The ` thread.spawn_ref ` built-in is an optimization, fusing a call to
2212+ The ` thread.spawn-ref ` built-in is an optimization, fusing a call to
22132213` thread.new_ref ` (assuming ` thread.new_ref ` was added as part of adding a
22142214[ GC ABI option] to the Canonical ABI) with a call to
22152215[ ` thread.resume-later ` ] ( #-threadresume-later ) . This optimization is more
22162216impactful once given [ shared-everything-threads] and thus gated on 🧵②.
22172217
22182218For details, see [ ` canon_thread_spawn_ref ` ] in the Canonical ABI explainer.
22192219
2220- ###### 🧵② ` thread.spawn_indirect `
2220+ ###### 🧵② ` thread.spawn-indirect `
22212221
22222222| Synopsis | |
22232223| -------------------------- | ------------------------------------------------------------------ |
22242224| Approximate WIT signature | ` func<shared?,FuncT,tableidx>(i: u32, c: FuncT.params[0]) -> bool ` |
22252225| Canonical ABI signature | ` shared? [i:i32 c:i32] -> [i32] ` |
22262226
2227- The ` thread.spawn_indirect ` built-in is an optimization, fusing a call to
2228- [ ` thread.new_indirect ` ] ( #-threadnew_indirect ) with a call to
2227+ The ` thread.spawn-indirect ` built-in is an optimization, fusing a call to
2228+ [ ` thread.new-indirect ` ] ( #-threadnew-indirect ) with a call to
22292229[ ` thread.resume-later ` ] ( #-threadresume-later ) . This optimization is more
22302230impactful once given [ shared-everything-threads] and thus gated on 🧵②.
22312231
@@ -3251,14 +3251,14 @@ For some use-case-focused, worked examples, see:
32513251[ `canon_error_context_debug_message` ] : CanonicalABI.md#-canon-error-contextdebug-message
32523252[ `canon_error_context_drop` ] : CanonicalABI.md#-canon-error-contextdrop
32533253[ `canon_thread_index` ] : CanonicalABI.md#-canon-threadindex
3254- [ `canon_thread_new_indirect` ] : CanonicalABI.md#-canon-threadnew_indirect
3254+ [ `canon_thread_new_indirect` ] : CanonicalABI.md#-canon-threadnew-indirect
32553255[ `canon_thread_suspend` ] : CanonicalABI.md#-canon-threadsuspend
32563256[ `canon_thread_switch_to` ] : CanonicalABI.md#-canon-threadswitch-to
32573257[ `canon_thread_resume_later` ] : CanonicalABI.md#-canon-threadresume-later
32583258[ `canon_thread_yield_to` ] : CanonicalABI.md#-canon-threadyield-to
32593259[ `canon_thread_yield` ] : CanonicalABI.md#-canon-threadyield
3260- [ `canon_thread_spawn_ref` ] : CanonicalABI.md#-canon-threadspawn_ref
3261- [ `canon_thread_spawn_indirect` ] : CanonicalABI.md#-canon-threadspawn_indirect
3260+ [ `canon_thread_spawn_ref` ] : CanonicalABI.md#-canon-threadspawn-ref
3261+ [ `canon_thread_spawn_indirect` ] : CanonicalABI.md#-canon-threadspawn-indirect
32623262[ `canon_thread_available_parallelism` ] : CanonicalABI.md#-canon-threadavailable_parallelism
32633263[ Shared-Nothing ] : ../high-level/Choices.md
32643264[ Use Cases ] : ../high-level/UseCases.md
0 commit comments