package riot
An actor-model multi-core scheduler for OCaml 5
Install
Dune Dependency
Authors
Maintainers
Sources
riot-0.0.5.tbz
sha256=01b7b82ccc656b12b7315960d9df17eb4682b8f1af68e9fee33171fee1f9cf88
sha512=d8831d8a75fe43a7e8d16d2c0bb7d27f6d975133e17c5dd89ef7e575039c59d27c1ab74fbadcca81ddfbc0c74d1e46c35baba35ef825b36ac6c4e49d7a41d0c2
doc/src/riot.lib/telemetry_app.ml.html
Source file telemetry_app.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
open Runtime type event = Telemetry.event = .. let name = "Riot.Telemetry" module Dispatcher = struct type Message.t += Event of Telemetry.event [@@unboxed] let __main_dispatcher__ : Pid.t ref = ref Pid.zero let rec loop () = match receive () with | Event e -> Telemetry.emit e; loop () | _ -> loop () let start_link () = let pid = spawn_link (fun () -> loop ()) in __main_dispatcher__ := pid; Ok pid let emit ev = send !__main_dispatcher__ (Event ev) end let start () = Dispatcher.start_link () let emit = Dispatcher.emit let attach = Telemetry.attach
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>