Module Testo.Promise

Wrapper allowing for asynchronous test functions (Lwt and such).

For ordinary Testo use where test function computations are synchronous (i.e. not Lwt), any occurrence of the type xxx Promise.t is the same as just xxx.

type 'a t = 'a
val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val catch : (unit -> 'a t) -> (exn -> Stdlib.Printexc.raw_backtrace -> 'a t) -> 'a t
val catch_result : (unit -> 'a t) -> ('a, exn * Stdlib.Printexc.raw_backtrace) Stdlib.result t
module Operators : sig ... end
val protect : (unit -> 'a t) -> finally:(unit -> unit t) -> 'a t