package eio
Effect-based direct-style IO API for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
eio-1.0.tbz
sha256=da260d9da38b3dde9f316652a20b13a261cf90b85a2498ac669b7d564e61942d
sha512=5886e1159f48ede237769baa1d8b5daafa0310e4192d7fe0e8c32aef70f2b6378cef72d0fbae308457e25d87a69802b9ee83a5e8f23e0591d83086a92d701c46
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)"
>