Js_of_ocaml_eio.Eio_js
val start : (unit -> unit) -> unit
start f executes function f asynchronously in a context where Eio operations can be performed.
start f
f
This function is an alias for Eio_js_backend.start.
Eio_js_backend.start
val sleep : float -> unit
sleep d waits for d seconds.
sleep d
d
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.
yield ()
setTimeout(..., 0)
Eio.Fiber.yield