Module Jsonrpc2_lwt.IO_lwt

type 'a t = 'a Lwt.t
val return : 'a -> 'a t
module Infix : sig ... end
include module type of Infix
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
module Future : Jsonrpc2__.Jsonrpc2_intf.FUTURE with type 'a wait = 'a t and type 'a t = 'a Lwt.t and type 'a promise = 'a Lwt.u
type lock
val create_lock : unit -> lock
val with_lock : lock -> (unit -> 'a t) -> 'a t
type in_channel = Lwt_io.input_channel
type out_channel = Lwt_io.output_channel
val read_line : in_channel -> (string, exn) Pervasives.result t

Read a full line, including the trailing '\n'

val read_exact : in_channel -> bytes -> int -> (unit, exn) Pervasives.result t

read_exact ic buf n reads exactly n bytes into buf, starting at index 0.

val write_string : out_channel -> string -> (unit, exn) Pervasives.result t

write to the channel.