alexcrichton opened issue #12467:
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 tocall_concurrent(ish) which is invoked once the values are received.This is somewhat related to #12427 insofar as post-return is causing issues there.
alexcrichton added the wasm-proposal:component-model-async label to Issue #12467.
Last updated: Feb 24 2026 at 04:36 UTC