Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

462 B
Raw Blame
;;! component_model_async = true
;;! component_model_async_stackful = true

;; async lift; with callback
(component
  (core module $m
    (func (export "callback") (param i32 i32 i32) (result i32) unreachable)
    (func (export "foo") (param i32) (result i32) unreachable)
  )
  (core instance $i (instantiate $m))

  (func (export "foo") async (param "p1" u32) (result u32)
    (canon lift (core func $i "foo") async (callback (core func $i "callback")))
  )
)