= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package async_extra
-
async_extra
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Falling back to pre-odoc.2.2.0 documentation page...
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val close : t -> unit Async_kernel.Deferred.t
val is_closed : t -> bool
val read_forever :
t ->
on_message:
( Core_kernel.Bigstring.t ->
pos:int ->
len:int ->
'a Async_rpc_kernel__Transport_intf.Handler_result.t ) ->
on_end_of_batch:( unit -> unit ) ->
( 'a, [ `Eof | `Closed ] ) Core_kernel.Result.t Async_kernel.Deferred.t
Start reading incoming messages and pass them to on_message
, until it returns Stop _
.
on_end_of_batch
is called after processing a batch of messages, before waiting for the file descriptor to become readable again.