b6449cae87
* `lib_stdlib`: basic extended OCaml stdlib and generic data structures * `lib_data_encoding`: almost independant 'Data_encoding' * `lib_error_monad`: almost independant 'Error_monad' * `lib_stdlib_lwt`: extended Lwt library * `lib_crypto`: all the crypto stuff (hashing, signing, cryptobox). * `lib_base`: - basic type definitions (Block_header, Operation, ...) - a module `TzPervasives` to bind them all and to be the single module opened everywhere. In the process, I splitted `Tezos_data` and `Hash` in multiple submodules, thus removing a lot of `-open`. The following two modules may not have found their place yet: - Base58 (currently in `lib_crypto`) - Cli_entries (currently in `lib_stdlib_lwt`)
65 lines
2.1 KiB
OCaml
65 lines
2.1 KiB
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* Copyright (c) 2014 - 2017. *)
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
(* *)
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
val may: f:('a -> unit Lwt.t) -> 'a option -> unit Lwt.t
|
|
|
|
val never_ending: 'a Lwt.t
|
|
|
|
val canceler: unit ->
|
|
(unit -> unit Lwt.t) *
|
|
(unit -> unit Lwt.t) *
|
|
((unit -> unit Lwt.t) -> unit)
|
|
|
|
val worker:
|
|
string ->
|
|
run:(unit -> unit Lwt.t) ->
|
|
cancel:(unit -> unit Lwt.t) ->
|
|
unit Lwt.t
|
|
|
|
val trigger: unit -> (unit -> unit) * (unit -> unit Lwt.t)
|
|
val queue: unit -> ('a -> unit) * (unit -> 'a list Lwt.t)
|
|
val sort: ('a -> 'a -> int Lwt.t) -> 'a list -> 'a list Lwt.t
|
|
|
|
val read_bytes:
|
|
?pos:int -> ?len:int -> Lwt_unix.file_descr -> bytes -> unit Lwt.t
|
|
|
|
val read_mbytes:
|
|
?pos:int -> ?len:int -> Lwt_unix.file_descr -> MBytes.t -> unit Lwt.t
|
|
|
|
val write_bytes:
|
|
?pos:int -> ?len:int -> Lwt_unix.file_descr -> bytes -> unit Lwt.t
|
|
val write_mbytes:
|
|
?pos:int -> ?len:int -> Lwt_unix.file_descr -> MBytes.t -> unit Lwt.t
|
|
|
|
val remove_dir: string -> unit Lwt.t
|
|
val create_dir: ?perm:int -> string -> unit Lwt.t
|
|
val create_file: ?perm:int -> string -> string -> unit Lwt.t
|
|
|
|
val safe_close: Lwt_unix.file_descr -> unit Lwt.t
|
|
|
|
open Error_monad
|
|
|
|
type error += Canceled
|
|
val protect :
|
|
?on_error:(error list -> 'a tzresult Lwt.t) ->
|
|
?canceler:Lwt_canceler.t ->
|
|
(unit -> 'a tzresult Lwt.t) -> 'a tzresult Lwt.t
|
|
|
|
type error += Timeout
|
|
val with_timeout:
|
|
?canceler:Lwt_canceler.t ->
|
|
float -> (Lwt_canceler.t -> 'a tzresult Lwt.t) -> 'a tzresult Lwt.t
|
|
|
|
val unless: bool -> (unit -> unit Lwt.t) -> unit Lwt.t
|
|
|
|
val getaddrinfo:
|
|
passive:bool ->
|
|
node:string -> service:string ->
|
|
(Ipaddr.V6.t * int) list Lwt.t
|