package eio
Effect-based direct-style IO API for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
eio-0.11.tbz
sha256=0c33742074562631677886f4fe4a02f9672cec94297ff85c2ed854db5baa71aa
sha512=590843cb5fb3906fd5ab9911d29206172d164a53c48e635871a23c95d4cdce8ae0999480471187fdddee8c9c523148911ca140feabde6a826c317671a3b33090
doc/src/eio.unix/eio_unix.ml.html
Source file eio_unix.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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
[@@@alert "-unstable"] module Fd = Fd module Resource = Resource module Private = Private include Types type socket = Net.stream_socket let await_readable = Private.await_readable let await_writable = Private.await_writable let pipe = Private.pipe type Eio.Exn.Backend.t += Unix_error of Unix.error * string * string let () = Eio.Exn.Backend.register_pp (fun f -> function | Unix_error (code, name, arg) -> Fmt.pf f "Unix_error (%s, %S, %S)" (Unix.error_message code) name arg; true | _ -> false ) let sleep d = Eio.Time.Mono.sleep (Effect.perform Private.Get_monotonic_clock) d let run_in_systhread = Private.run_in_systhread module Ipaddr = Net.Ipaddr module Ctf = Ctf_unix module Process = Process module Net = Net module Stdenv = struct type base = < stdin : source; stdout : sink; stderr : sink; net : Eio.Net.t; domain_mgr : Eio.Domain_manager.t; process_mgr : Process.mgr; clock : Eio.Time.clock; mono_clock : Eio.Time.Mono.t; fs : Eio.Fs.dir Eio.Path.t; cwd : Eio.Fs.dir Eio.Path.t; secure_random : Eio.Flow.source; debug : Eio.Debug.t; backend_id: string; > end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>