core-lwt
  1. Overview
  2. Docs

Overlay over some Lwt functions

val catch : (unit -> 'a Lwt.t) -> exn:(exn -> 'a Lwt.t) -> 'a Lwt.t
val try_bind : (unit -> 'a Lwt.t) -> ok:('a -> 'b Lwt.t) -> exn:(exn -> 'b Lwt.t) -> 'b Lwt.t
val protect : (unit -> 'a Lwt.t) -> finally:(unit -> unit Lwt.t) -> 'a Lwt.t
val don't_wait : 'a Lwt.t -> unit
val failwith : string -> 'a Lwt.t
val failwithf : ('a, unit, string, 'b Lwt.t) format4 -> 'a
val invalid_arg : string -> 'a Lwt.t
val invalid_argf : ('a, unit, string, 'b Lwt.t) format4 -> 'a