Skip to content

c-api: Async support for the component model #12955

@chaynabors

Description

@chaynabors

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_async
  • wasmtime_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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasm-proposal:component-modelIssues related to the WebAssembly Component Model proposalwasmtime:c-apiIssues pertaining to the C API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions