Back to Wasmtime

Asynchronous Host Functions

docs/examples-async.md

44.0.1518 B
Original Source

Asynchronous Host Functions

You can also browse this source code online and clone the wasmtime repository to run the example locally.

This example demonstrates configuring Wasmtime for asynchronous operation and calling async host functions from wasm.

Wasm Source

wat
{{#include ../examples/async.wat}}

Host Source

<!-- langtabs-start -->
cpp
{{#include ../examples/async.cc}}
<!-- langtabs-end -->