Up

Module Std

Signature

include Async_kernel.Std
val catch : ((unit -> unit) -> exn Monitor.Deferred.t) Monitor.with_optional_monitor_name
val choice : 'a Deferred.t -> ('a -> 'b) -> 'b Deferred.choice
val choose : 'a Deferred.choice list -> 'a Deferred.t
val don't_wait_for : unit Deferred.t -> unit
val every : ?start:unit Async_kernel.Deferred.t -> ?stop:unit Async_kernel.Deferred.t -> ?continue_on_error:bool -> Async_kernel.Import.Time_ns.Span.t -> (unit -> unit) -> unit
val never : unit -> 'a Deferred.t
val return : 'a -> 'a Deferred.t
val schedule : ((unit -> unit) -> unit) Async_kernel.Scheduler.with_options
val try_with : (?extract_exn:bool -> ?run:[
| `Now
| `Schedule
] -> ?rest:[
| `Log
| `Raise
] -> (unit -> 'a Monitor.Deferred.t) -> ('a, exn) Core_kernel.Std.Result.t Monitor.Deferred.t) Monitor.with_optional_monitor_name
val upon : 'a Deferred.t -> ('a -> unit) -> unit
val with_timeout : Async_kernel.Import.Time_ns.Span.t -> 'a Async_kernel.Deferred.t -> [
| `Result of 'a
| `Timeout
] Async_kernel.Deferred.t
val within : ((unit -> unit) -> unit) Async_kernel.Scheduler.with_options
val (>>>) : 'a Deferred.t -> ('a -> unit) -> unit
val (>>=?) : ('a, 'b) Deferred.Result.t -> ('a -> ('c, 'b) Deferred.Result.t) -> ('c, 'b) Deferred.Result.t
val (>>|?) : ('a, 'b) Deferred.Result.t -> ('a -> 'c) -> ('c, 'b) Deferred.Result.t
include Core_kernel.Std.Monad.Infix with type 'a t := 'a Deferred.t
type 'a t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

val (>>|) : 'a t -> ('a -> 'b) -> 'b t

t >>| f is t >>= (fun a -> return (f a)).

include Async_unix.Std
module Fd = Async_unix.Fd
module Unix : sig .. end
val every : ?start:unit Async_kernel.Deferred.t -> ?stop:unit Async_kernel.Deferred.t -> ?continue_on_error:bool -> Core.Std.Time.Span.t -> (unit -> unit) -> unit
val with_timeout : Core.Std.Time.Span.t -> 'a Async_kernel.Deferred.t -> [
| `Result of 'a
| `Timeout
] Async_kernel.Deferred.t
val schedule : ((unit -> unit) -> unit) Scheduler.with_options
val shutdown : ?force:unit Async_unix.Import.Deferred.t -> int -> unit
val within : ((unit -> unit) -> unit) Scheduler.with_options
module Printf : sig .. end
module Overwrite_ : sig .. end
val close_in_noerr : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val close_in : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val close_out_noerr : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val close_out : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val eprintf : ('a, unit, string, unit) Pervasives.format4 -> 'a
val flush_all : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val flush : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val fprintf : Async_unix.Writer.t -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val in_channel_length : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_binary_int : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_byte : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_char : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_line : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_lines : ?fix_win_eol:'a -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val input_value : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_in_bin : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_in_gen : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_in : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_out_bin : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_out_gen : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val open_out : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val out_channel_length : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output_binary_int : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output_byte : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output_char : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output_string : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val output_value : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val pos_in : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val pos_out : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val prerr_char : char -> unit
val prerr_endline : string -> unit
val prerr_float : float -> unit
val prerr_int : int -> unit
val prerr_newline : unit -> unit
val prerr_string : string -> unit
val print_char : char -> unit
val print_endline : string -> unit
val print_float : float -> unit
val printf : ('a, unit, string, unit) Pervasives.format4 -> 'a
val print_int : int -> unit
val print_newline : unit -> unit
val print_string : string -> unit
val read_float : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val read_int : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val read_line : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val read_lines : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val read_wrap : ?binary:'a -> f:'b -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val really_input : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val seek_in : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val seek_out : [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val set_binary_mode_in : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val set_binary_mode_out : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val write_lines : [<
| `This_is_async__Think_about_blocking
] -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
val write_wrap : ?binary:'a -> f:'b -> [<
| `This_is_async__Think_about_blocking
] -> [>
| `This_is_async__Think_about_blocking
]
module LargeFile : sig .. end
val exit : ?force:unit Async_unix.Import.Deferred.t -> int -> 'a Async_unix.Import.Deferred.t