package tezos-base

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

Parameters

module H : Stdlib.Hashtbl.HashedType

Signature

type key = H.t
type ('a, 'trace) t = ('a, 'trace) Tezos_lwt_result_stdlib__Lwtreslib.Traced(Tezos_error_monad.TzTrace).Hashtbl.Make_es(H).t
val create : int -> ('a, 'trace) t
val clear : ('a, 'trace) t -> unit
val reset : ('a, 'trace) t -> unit
val find_or_make : ('a, 'trace) t -> key -> (unit -> ('a, 'trace) Stdlib.result Lwt.t) -> ('a, 'trace) Stdlib.result Lwt.t
val remove : ('a, 'trace) t -> key -> unit
val find : ('a, 'trace) t -> key -> ('a, 'trace) Stdlib.result Lwt.t option
val mem : ('a, 'trace) t -> key -> bool
val iter_with_waiting_es : (key -> 'a -> (unit, 'trace) Stdlib.result Lwt.t) -> ('a, 'trace) t -> (unit, 'trace) Stdlib.result Lwt.t
val fold_with_waiting_es : (key -> 'a -> 'b -> ('b, 'trace) Stdlib.result Lwt.t) -> ('a, 'trace) t -> 'b -> ('b, 'trace) Stdlib.result Lwt.t
val fold_keys : (key -> 'b -> 'b) -> ('a, 'trace) t -> 'b -> 'b
val fold_promises : (key -> ('a, 'trace) Stdlib.result Lwt.t -> 'b -> 'b) -> ('a, 'trace) t -> 'b -> 'b
val fold_resolved : (key -> 'a -> 'b -> 'b) -> ('a, 'trace) t -> 'b -> 'b
val length : ('a, 'trace) t -> int
val stats : ('a, 'trace) t -> Stdlib.Hashtbl.statistics
val iter_with_waiting_ep : (key -> 'a -> (unit, 'error Tezos_error_monad.TzTrace.trace) Stdlib.result Lwt.t) -> ('a, 'error Tezos_error_monad.TzTrace.trace) t -> (unit, 'error Tezos_error_monad.TzTrace.trace) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.