Module Js_of_ocaml_eio.Eio_js

Eio scheduler setup

val start : (unit -> unit) -> unit

start f executes function f asynchronously in a context where Eio operations can be performed.

This function is an alias for Eio_js_backend.start.

Javascript specific Eio functions.

val sleep : float -> unit

sleep d waits for d seconds.

val yield : unit -> unit

yield () suspends the current fiber and yields to the JavaScript event loop (via setTimeout(..., 0)), resuming as soon as possible. To yield only to other Eio fibers without going through the timer queue, use Eio.Fiber.yield.