mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
This switches capnp-rpc from Lwt to Eio. One particularly nice side effect of this is that `Service.return_lwt` has gone, as there is no distinction now between concurrent and non-concurrent service methods.
19 lines
562 B
OCaml
19 lines
562 B
OCaml
module Capnp_content = struct
|
|
include Msg
|
|
|
|
let ref_leak_detected = Leak_handler.ref_leak_detected
|
|
end
|
|
|
|
module Core_types = Capnp_rpc_proto.Core_types(Capnp_content)
|
|
|
|
module Local_struct_promise = Capnp_rpc_proto.Local_struct_promise.Make(Core_types)
|
|
module Cap_proxy = Capnp_rpc_proto.Cap_proxy.Make(Core_types)
|
|
|
|
module type ENDPOINT = Capnp_rpc_proto.Message_types.ENDPOINT with
|
|
module Core_types = Core_types
|
|
|
|
class type sturdy_ref = object
|
|
method connect : (Core_types.cap, Capnp_rpc_proto.Exception.t) result
|
|
method to_uri_with_secrets : Uri.t
|
|
end
|