async_js

A small library that provide Async support for JavaScript platforms
Library async_js
Module Async_js . Rpc . Rpc . Expert . Responder
val schedule : t -> Core.Bigstring.t -> pos:int -> len:int -> [ `Flushed of unit Async_kernel.Deferred.t | `Connection_closed ]

As in Writer, after calling schedule, you should not overwrite the Bigstring.t passed in until the responder is flushed.

val write_bigstring : t -> Core.Bigstring.t -> pos:int -> len:int -> unit

On the other hand, these are written immediately.

val write_bin_prot : t -> 'a Bin_prot.Type_class.writer -> 'a -> unit
val write_error : t -> Core.Error.t -> unit