(module $actor-scheduler (type $func (;0;) (func)) (type $cont (;1;) (cont $func)) (type $cont-func (;2;) (func (param (ref $cont)))) (type $cont-cont (;3;) (cont $cont-func)) (import "actor-as-lwt" "act" (func $act (;0;) (type $cont-func))) (import "scheduler" "run" (func $scheduler (;1;) (type $cont-func))) (export "run-actor" (func $run-actor)) (elem (;0;) declare func $act $scheduler) (func $run-actor (;2;) (type $cont-func) (param $k (ref $cont)) local.get $k ref.func $act cont.new $cont-cont cont.bind $cont-cont $cont call $scheduler ) )