package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Expert.Responder

val schedule : t -> Core_kernel.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_kernel.Bigstring.t -> pos:int -> len:int -> unit

On the other hand, these are written immediately.

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