package canary

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CanarySource

Sourceval (let*) : ('a, 'b) Lwt_result.t -> ('a -> ('c, 'b) Lwt_result.t) -> ('c, 'b) Lwt_result.t
Sourcetype 'a notifier = additional:string -> exn -> string -> ('a, string) Lwt_result.t
Sourcemodule Notifier : sig ... end
Sourceval handle : notify:(string -> string -> ('a, string) 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.

OCaml

Innovation. Community. Security.