package devkit

  1. Overview
  2. Docs

Dealing with Lwt exceptions

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