bytecodealliance / bytecodealliance/wasmtime-py

Add async component model support

Open
#333 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
539
Forks
69
Avg merge
13m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.