package devkit

  1. Overview
  2. Docs

Dealing with Lwt exceptions

val catch : ('a -> 'b Lwt.t) -> 'a -> 'b option Lwt.t
val map : ('a -> 'b Lwt.t) -> 'a -> [> `Exn of exn | `Ok of 'b ] Lwt.t
val fail : ?exn:exn -> ('a, unit, string, 'b Lwt.t) Stdlib.format4 -> 'a
val invalid_arg : ('a, unit, string, 'b Lwt.t) Stdlib.format4 -> 'a
OCaml

Innovation. Community. Security.