package moonpool-io

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file moonpool_io.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
module Fd = Picos_io_fd
module Unix = Picos_io.Unix
module Select = Picos_io_select

let fd_of_unix_fd : Unix.file_descr -> Fd.t = Fun.id

(** [main f] runs [f()] inside a scheduler. *)
let main (f : Moonpool.Runner.t -> 'a) : 'a = Moonpool_fib.main f

(** {2 Async read/write} *)

let read = Unix.read
let write = Unix.write
OCaml

Innovation. Community. Security.