Legend:
Library
Module
Module type
Parameter
Class
Class type
Maps with the signature S are exception-safe replacements for maps with the Stdlib.Map.S signature with Lwt- and result-aware traversal functions.
See Lwtreslib's introductory documentation for explanations regarding _e-, _s-, _es-, _p-, and _ep-suffixed functions and exception safety. See Stdlib.Map.S for explanations regarding OCaml's maps in general.
Note that this signature is within the Traced part of the library. As a result, the _ep traversor returns en 'error trace.
val iter_e :
(key->'a->(unit, 'trace)Stdlib.result)->'at->(unit, 'trace)Stdlib.result
iter_e f m applies f to the bindings of m one by one in an unspecified order. If all the applications result in Ok (), then the result of the iteration is Ok (). If any of the applications results in Error e then the iteration stops and the result of the iteration is Error e.
val iter_es :
(key->'a->(unit, 'trace)Stdlib.resultLwt.t)->'at->(unit, 'trace)Stdlib.resultLwt.t
iter_es f m applies f to the bindings of m in an unspecified order, one after the other as the promises resolve. If all the applications result in Ok (), then the result of the iteration is Ok (). If any of the applications results in Error e then the iteration stops and the result of the iteration is Error e.