package async
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
async-v0.14.0.tar.gz
sha256=74f2b7b01ce3b92289cc7a68cd3ae53885c763cedd320d27949d585e5c13dc64
md5=9f80cfb72e3defcc9fca50f67e23e93c
doc/async.async_rpc/Async_rpc/Rpc/Low_latency_transport/Reader/index.html
Module Low_latency_transport.Reader
include module type of struct include Async_rpc_kernel.Rpc.Transport.Reader end
module type S = Async_rpc_kernel.Rpc.Transport.Reader.S
include S
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.
val read_one_message_bin_prot :
t ->
'a Core_kernel.Bin_prot.Type_class.reader ->
('a, [ `Closed | `Eof ]) Core_kernel.Result.t Async_kernel.Deferred.t
Convenience function to wait for the first message and un-bin_prot it.
Async RPC uses this to handle the handshake at the beginning of the message stream.
val create : ?config:Config.t -> max_message_size:int -> Async_unix.Fd.t -> t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>