dicej opened issue #11218:
Per https://github.com/bytecodealliance/wasmtime/pull/11127#discussion_r2190330180, Alex would like to see the signature of
Func::call_concurrentchanged to accept.., params: &[Val], results: &mut [Val]parameters and return animpl Future<Output = Result<()>>rather than the.., params: Vec<Val>andimpl Future<Output = Result<Vec<Val>>>in the current signature.I tried implementing this, but it proved difficult to use e.g. in the scenario where the embedder starts concurrent calls in a loop, adds them to a
FuturesUnorderedand then collects the results. Specifically, it was difficult to createFutures which closed over theresultswithout closing over the store as well. I may have been missing something, though, so we should revisit this.
dicej added the wasm-proposal:component-model-async label to Issue #11218.
alexcrichton assigned alexcrichton to issue #11218.
alexcrichton closed issue #11218:
Per https://github.com/bytecodealliance/wasmtime/pull/11127#discussion_r2190330180, Alex would like to see the signature of
Func::call_concurrentchanged to accept.., params: &[Val], results: &mut [Val]parameters and return animpl Future<Output = Result<()>>rather than the.., params: Vec<Val>andimpl Future<Output = Result<Vec<Val>>>in the current signature.I tried implementing this, but it proved difficult to use e.g. in the scenario where the embedder starts concurrent calls in a loop, adds them to a
FuturesUnorderedand then collects the results. Specifically, it was difficult to createFutures which closed over theresultswithout closing over the store as well. I may have been missing something, though, so we should revisit this.
Last updated: Dec 06 2025 at 06:05 UTC