package babel

  1. Overview
  2. Docs

High level functions for working with callees in the style of Async.Rpc.One_way.implement.

type 'msg implementation := 'msg -> unit
val singleton : 'msg Async_rpc_kernel.Rpc.One_way.t -> 'msg implementation t

Create a callee which can implement a given rpc.

Extend a callee to be able to implement a given rpc.

val map_msg : 'msg1 implementation t -> f:('msg1 -> 'msg2) -> 'msg2 implementation t

Map over the query type of a callee.

OCaml

Innovation. Community. Security.