package eio
Effect-based direct-style IO API for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
eio-0.14.tbz
sha256=52f85b947d3e0de70940b5bbaac0d3e78841fea5648e73af7d8a754ab51c871b
sha512=944095b1131d2dcc1f0d415fe46fd78b883733e0f95985e3a0feafe73b1703606ec60560abf36c16c364cc60164b7330f236e39569e264c702bb5647e28bfd3c
doc/src/eio.core/suspend.ml.html
Source file suspend.ml
1 2 3 4 5 6 7 8 9 10 11 12
type 'a enqueue = ('a, exn) result -> unit type _ Effect.t += Suspend : (Cancel.fiber_context -> 'a enqueue -> unit) -> 'a Effect.t let enter_unchecked op fn = Trace.suspend_fiber op; Effect.perform (Suspend fn) let enter op fn = enter_unchecked op @@ fun fiber enqueue -> match Cancel.Fiber_context.get_error fiber with | None -> fn fiber enqueue | Some ex -> enqueue (Error ex)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>