-
Notifications
You must be signed in to change notification settings - Fork 1.7k
c-api: Async support for the component model #12955
Copy link
Copy link
Open
Labels
wasm-proposal:component-modelIssues related to the WebAssembly Component Model proposalIssues related to the WebAssembly Component Model proposalwasmtime:c-apiIssues pertaining to the C API.Issues pertaining to the C API.
Description
The core module C API has async support but the component model C API doesn't appear to. The Rust API supports this via func.call_async() so the implementation exists, just not the C bindings.
I'm hosting components from Python via wasmtime-py and need async to avoid blocking the event loop during outbound HTTP calls. As far as I can tell, what's needed is:
wasmtime_component_func_call_asyncwasmtime_component_linker_instantiate_async- Async linker variants for WASI and wasi-http so host calls yield the fiber instead of blocking
Am I right in this? Is the group interested in accepting contributions for this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wasm-proposal:component-modelIssues related to the WebAssembly Component Model proposalIssues related to the WebAssembly Component Model proposalwasmtime:c-apiIssues pertaining to the C API.Issues pertaining to the C API.