async_rpc_kernel

Platform-independent core of Async RPC library
IN THIS PACKAGE
type query
type response
type error
val implement_multi : ?log_not_previously_seen_version:( name:string -> int -> unit ) -> ( 'state -> version:int -> query -> ( response Async_kernel.Pipe.Reader.t, error ) Core_kernel.Result.t Async_kernel.Deferred.t ) -> 'state Rpc.Implementation.t list

implement multiple versions at once

val implement_direct_multi : ?log_not_previously_seen_version:( name:string -> int -> unit ) -> ( 'state -> version:int -> query -> response Versioned_direct_stream_writer.t -> ( unit, error ) Core_kernel.Result.t Async_kernel.Deferred.t ) -> 'state Rpc.Implementation.t list

implement multiple versions at once, using a Versioned_direct_stream_writer

val rpcs : unit -> Rpc.Any.t list

All rpcs implemented by implement_multi

val versions : unit -> Core_kernel.Int.Set.t

All versions supported by implement_multi. (useful for computing which old versions may be pruned)

val name : string