Module Kxclib_jsoo.Futexn_io

type 'x fut = 'x Prr.Fut.t
val pp_fut : ('a -> 'b -> unit) -> 'c -> 'd fut -> unit
val current_backtrace : unit -> Kxclib.backtrace_info
type 'x t = ('x, exn * Kxclib.backtrace_info) Stdlib.result fut
val await : 'a t -> (('a, exn * Kxclib.backtrace_info) Stdlib.result -> unit) -> unit
val return : 'x. 'x -> 'x t
val inject_error' : 'x. (exn * Kxclib.backtrace_info Kxclib.Option.t) -> 'x t
val inject_error : 'x. exn -> 'x t
val trace : string -> unit t
val bind : 'x 'y. 'x t -> ('x -> 'y t) -> 'y t
val extract_error : 'x t -> ('x, exn * Kxclib.backtrace_info option) Stdlib.result t
val tick_ms : int -> (unit, 'a) Stdlib.result Prr.Fut.t
val to_promise : error:((exn * Kxclib.backtrace_info) -> Prr.Jv.t) -> Prr.Jv.t t -> Prr.Jv.Promise.t
val wrap_js_result : (Prr.Jv.t, Prr.Jv.Error.t) Stdlib.result t -> Prr.Jv.t t
val wrap_future_result : ('a, Prr.Jv.Error.t) Stdlib.result fut -> 'a t
val of_promise : ?err_message:string -> Prr__.Jv.Promise.t -> Prr__.Jv.t t