Skip to content

New version of js_events with semantics closer to Lwt_js_events (on top of PR #6)#7

Draft
balat wants to merge 5 commits intomainfrom
js_events
Draft

New version of js_events with semantics closer to Lwt_js_events (on top of PR #6)#7
balat wants to merge 5 commits intomainfrom
js_events

Conversation

@balat
Copy link

@balat balat commented Dec 5, 2025

Experimental version of Js_events with a semantics closer to Lwt_js_events.

Example:

let c = clicks e h in
...
Lwt.cancel c

would become:

Eio_js.start @@ fun () ->
Eio.Switch.run @@ fun sw ->
Eio.Fiber.fork ~sw (fun () -> clicks e h);
...
Eio.Switch.fail sw Exn

@balat balat changed the title New version of js_events with semantics closer to Lwt_js_events (on top of PR #1) New version of js_events with semantics closer to Lwt_js_events (on top of PR #6) Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant