bytecodealliance / bytecodealliance/wasmtime
Enable `WasmStr`/`WasmList` with `call_concurrent`
Open
wasm-proposal:component-model-async
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 126
Description
Right now it's not possible to use these types as return values of a guest function with `call_concurrent`. The reason for this is that post-return is invoked automatically meaning that using these types would be using already-free'd memory in the guest. We should enable these types to work to unlock the possibility of zero-copy return values. This'll probably look like some sort of closure/trait passed to `call_concurrent` (ish) which is invoked once the values are received.
This is somewhat related to #12427 insofar as post-return is causing issues there.
Contributor guide
Assessment
This issue has not been assessed yet.