Timeout* 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. *
val with_timeout :
timeout:int ->
?on_timeout:(unit -> unit) ->
do_:(t -> 'a) ->
'aval check_timeout : t -> unitval open_in : string -> in_channelval close_in : in_channel -> unitval close_in_noerr : in_channel -> unitval in_channel_of_descr : Unix.file_descr -> in_channelval descr_of_in_channel : in_channel -> Unix.file_descrval input : ?timeout:t -> in_channel -> bytes -> int -> int -> intval really_input : ?timeout:t -> in_channel -> bytes -> int -> int -> unitval input_char : ?timeout:t -> in_channel -> charval input_line : ?timeout:t -> in_channel -> stringval input_value : ?timeout:t -> in_channel -> 'aval open_process : string -> string array -> in_channel * out_channelval open_process_in : string -> string array -> in_channelval close_process_in : in_channel -> Unix.process_statusval read_process :
timeout:int ->
?on_timeout:(unit -> unit) ->
reader:(t -> in_channel -> out_channel -> 'a) ->
string ->
string array ->
'aval open_connection : ?timeout:t -> Unix.sockaddr -> in_channel * out_channelval read_connection :
timeout:int ->
?on_timeout:(unit -> unit) ->
reader:(t -> in_channel -> out_channel -> 'a) ->
Unix.sockaddr ->
'aval shutdown_connection : in_channel -> unit