package eio
Effect-based direct-style IO API for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
eio-1.2.tbz
sha256=3792e912bd8d494bb2e38f73081825e4d212b1970cf2c1f1b2966caa9fd6bc40
sha512=4a80dbcf8cf2663bdad0f2970871844f37bd293c56bd1ce602910e0a613754945f1f942719f9630906453be7c73c1732dc97526c6c90b0b36100d04fd5e871e4
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)"
>