bytecodealliance / bytecodealliance/wasmtime-py
Add async component model support
- 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
Assessment
This issue has not been assessed yet.