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.
val iter_e :
(key->'a->(unit, 'trace)result)->'at->(unit, 'trace)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.
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.
iter_ep f m applies f to the bindings of m. All the applications are done concurrently. 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 result of the iteration is Error e.