Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/docs/examples-async.md
2452 views

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

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

Host Source

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