async_js

A small library that provide Async support for JavaScript platforms
Library async_js
Module Async_js . Rpc . One_way
type 'msg t
val create : name:string -> version:int -> bin_msg:'msg Bin_prot.Type_class.t -> 'msg t
val name : _ t -> string
val version : _ t -> int
val description : _ t -> Description.t
val msg_type_id : 'msg t -> 'msg Core.Type_equal.Id.t
val bin_msg : 'msg t -> 'msg Bin_prot.Type_class.t
val implement : ?on_exception:On_exception.t -> 'msg t -> ( 'connection_state -> 'msg -> unit ) -> 'connection_state Implementation.t
val dispatch' : 'msg t -> {Connection}2.t -> 'msg -> unit Async_rpc_kernel.Rpc_result.t

dispatch' exposes Rpc_result.t as output. Passing it through rpc_result_to_or_error gives you the same result as dispatch

val rpc_result_to_or_error : 'msg t -> {Connection}2.t -> unit Async_rpc_kernel.Rpc_result.t -> unit Core.Or_error.t
val dispatch : 'msg t -> {Connection}2.t -> 'msg -> unit Core.Or_error.t
val dispatch_exn : 'msg t -> {Connection}2.t -> 'msg -> unit
module Expert : sig ... end