You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose when component model async tasks finish, not just return #11600
Today Func::call_concurrent will resolve when the guest invokes task.return, but the guest can continue running. This concept, supported by the component model, should be modeled in Wasmtime's embedder API as well. For example the return value of call_concurrent could always return a WasmTask argument (or something like that) which can then be used to await with an &Accessor just as a function could be called concurrently. This would enable the embedder to, optionally, explicitly wait on guests that would like to continue running. Additionally the embedder could learn about traps during this time frame, but no other results would come out of the guest.
Activity
rvolosatovs commentedon Sep 8, 2025
This makes a lot of sense! As an embedder I would expect to be able to acquire a construct similar to https://docs.rs/tokio/latest/tokio/task/struct.JoinSet.html
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
return `TaskExit` future from `[Typed]Func::call_concurrent`
add `task_exit` option to `wasmtime-wit-bindgen`
add `task_exit` option to `wasmtime-wit-bindgen`
return `TaskExit` future from `[Typed]Func::call_concurrent` (#11662)
add `task_exit` option to `wasmtime-wit-bindgen`
add `task_exit` option to `wasmtime-wit-bindgen` (#11665)
return `TaskExit` future from `[Typed]Func::call_concurrent` (bytecod…
add `task_exit` option to `wasmtime-wit-bindgen` (bytecodealliance#11665
[37.0.0] Another crop of backports (#11679)
return `TaskExit` future from `[Typed]Func::call_concurrent` (bytecod…
add `task_exit` option to `wasmtime-wit-bindgen` (bytecodealliance#11665