Skip to content

Add async component model support #333

@chaynabors

Description

@chaynabors

Depends on bytecodealliance/wasmtime#12973.

I'm going to have a colleague take a first pass at this. Leaving notes here for context.

The C API now has async component model functions. The easy ones follow existing patterns: config properties, add_wasip2_async(), add_wasi_http_async(). The interesting part is bridging wasmtime_call_future_poll with asyncio for func_call_async, instantiate_async, and add_func_async.

wasmtime_call_future_poll and wasmtime_call_future_delete are already in _bindings.py.

Implementation requires a build containing the additions in bytecodealliance/wasmtime#12973. That won't happen for a couple of weeks afaik. In the meantime, my fork points to a working release https://github.com/chaynabors/wasmtime-py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions