Stream: git-wasmtime

Topic: wasmtime / issue #12187 Run task to completion in `wasmti...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:19):

dicej opened issue #12187:

Currently, wasmtime run's invoke_component function uses Func::call_async to invoke the function. However, that will only run the guest task until it produces a result, then print that result an exit. Ideally, it would use Func::call_concurrent instead, which returns a TaskExit which can be used to await the completion of the task, allowing any post-return operations to finish.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:23):

dicej edited issue #12187:

Currently, wasmtime run's invoke_component function uses Func::call_async to invoke the function. However, that will only run the guest task until it produces a result, then print that result and exit. Ideally, it would use Func::call_concurrent instead, which returns a TaskExit which can be used to await the completion of the task, allowing any post-return operations to finish.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:41):

alexcrichton added the wasm-proposal:component-model-async label to Issue #12187.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 29 2025 at 17:25):

vados-cosmonic commented on issue #12187:

Hey just to check, this was closed by https://github.com/bytecodealliance/wasmtime/pull/12185, right?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 29 2025 at 17:25):

vados-cosmonic edited a comment on issue #12187:

Hey just to check, this was resolved by https://github.com/bytecodealliance/wasmtime/pull/12185, right?

view this post on Zulip Wasmtime GitHub notifications bot (Jan 05 2026 at 15:34):

alexcrichton commented on issue #12187:

That handled executing the wasi:cli/run function, but this is the follow-up for --invoke which manually selects a function and invokes it. Effectively this needs to use call_concurrent and then use the second TaskExit return value

view this post on Zulip Wasmtime GitHub notifications bot (Jan 06 2026 at 20:55):

dicej assigned dicej to issue #12187.


Last updated: Jan 09 2026 at 13:15 UTC