package canary

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val let* : ('a, 'b) Lwt_result.t -> ('a -> ('c, 'b) Lwt_result.t) -> ('c, 'b) Lwt_result.t
type 'a notifier = additional:string -> exn -> string -> ('a, string) Lwt_result.t
module Notifier : sig ... end
val handle : notify:(string -> string -> ('a, string) Stdlib.result Lwt.t) -> (unit -> unit Lwt.t) -> unit Lwt.t

handle ~notify f executes the function f, catching any exceptions and passing those exceptions to notify.