package hack_parallel

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

* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *

type t
exception Timeout
val with_timeout : timeout:int -> ?on_timeout:(unit -> unit) -> do_:(t -> 'a) -> 'a
val check_timeout : t -> unit
type in_channel
val open_in : string -> in_channel
val close_in : in_channel -> unit
val close_in_noerr : in_channel -> unit
val in_channel_of_descr : Unix.file_descr -> in_channel
val descr_of_in_channel : in_channel -> Unix.file_descr
val input : ?timeout:t -> in_channel -> bytes -> int -> int -> int
val really_input : ?timeout:t -> in_channel -> bytes -> int -> int -> unit
val input_char : ?timeout:t -> in_channel -> char
val input_line : ?timeout:t -> in_channel -> string
val input_value : ?timeout:t -> in_channel -> 'a
val open_process : string -> string array -> in_channel * Stdlib.out_channel
val open_process_in : string -> string array -> in_channel
val close_process_in : in_channel -> Unix.process_status
val read_process : timeout:int -> ?on_timeout:(unit -> unit) -> reader:(t -> in_channel -> Stdlib.out_channel -> 'a) -> string -> string array -> 'a
val open_connection : ?timeout:t -> Unix.sockaddr -> in_channel * Stdlib.out_channel
val read_connection : timeout:int -> ?on_timeout:(unit -> unit) -> reader:(t -> in_channel -> Stdlib.out_channel -> 'a) -> Unix.sockaddr -> 'a
val shutdown_connection : in_channel -> unit
OCaml

Innovation. Community. Security.