Skip to content

Commit

Permalink
Effects/runtime: export the current suspender
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Mar 6, 2024
1 parent 7305847 commit a1eb7bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/wasm/effect.wat
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
(import "bindings" "resume_fiber"
(func $resume_fiber (param externref) (param (ref eq))))

(global $current_suspender (mut (externref)) (ref.null extern))
(global $current_suspender (export "current_suspender")
(mut (externref)) (ref.null extern))

;; Capturing the current continuation

Expand Down

0 comments on commit a1eb7bc

Please sign in to comment.