package linol

  1. Overview
  2. Docs

Module Linol.Blocking_IOSource

Blocking IO with a new thread for each spawn.

Sourcetype 'a t = 'a
Sourceval return : 'a -> 'a t
Sourceval failwith : string -> 'a t
Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t
Sourceval (let*) : 'a t -> ('a -> 'b t) -> 'b t
Sourceval (and+) : 'a t -> 'b t -> ('a * 'b) t
Sourcetype env = unit
Sourcetype in_channel = in_channel
Sourcetype out_channel = out_channel
Sourceval stdin : env -> in_channel
Sourceval stdout : env -> out_channel
Sourceval read : in_channel -> bytes -> int -> int -> unit t
Sourceval read_line : in_channel -> string t
Sourceval write : out_channel -> bytes -> int -> int -> unit t
Sourceval write_string : out_channel -> string -> unit t
Sourceval fail : exn -> Printexc.raw_backtrace -> unit t
Sourceval catch : (unit -> 'a t) -> (exn -> Printexc.raw_backtrace -> 'a t) -> 'a t
Sourceval n_bytes_written : int Atomic.t
  • since 0.5
Sourceval n_bytes_read : int Atomic.t
  • since 0.5
Sourceval default_spawn : (unit -> unit) -> unit

Start a new thread.

  • since 0.5
OCaml

Innovation. Community. Security.