Lwt_resultExplicit error handling
This module provides helpers for values of type ('a, 'b) result Lwt.t. The module is experimental and may change in the future.
type (+'a, +'b) t = ('a, 'b) Result.result Lwt.tval return : 'a -> ('a, _) tval fail : 'b -> (_, 'b) tval lift : ('a, 'b) Result.result -> ('a, 'b) tcatch x behaves like return y if x evaluates to y, and like fail e if x raises e
val bind_result : ('a, 'e) t -> ('a -> ('b, 'e) Result.result) -> ('b, 'e) tmodule Infix : sig ... end