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.
12 lines
243 B
OCaml
12 lines
243 B
OCaml
open Eio.Std
|
|
|
|
let () =
|
|
Logs.set_level (Some Logs.Warning);
|
|
Logs.set_reporter (Logs_fmt.reporter ())
|
|
|
|
let () =
|
|
Eio_main.run @@ fun _ ->
|
|
let service = Echo.local in
|
|
let reply = Echo.ping service "foo" in
|
|
traceln "Got reply %S" reply
|