Module Kxclib_js.Promise_io

include Kxclib.Io_style with type 'a t = 'a Promise.t
type 'a t = 'a Promise.t
val return : 'x -> 'x t
val bind : 'x t -> ('x -> 'y t) -> 'y t
val inject_error : exn -> 'x t
val inject_error' : (exn * Kxclib.backtrace_info option) -> 'x t
val extract_error : 'x t -> ('x, exn * Kxclib.backtrace_info option) Stdlib.result t
val trace : string -> unit t