dialohq / ocaml-grpc

gRPC library for OCaml
https://dialohq.github.io/ocaml-grpc
BSD 3-Clause "New" or "Revised" License
58 stars 9 forks source link

Cancelable client #12

Closed ansiwen closed 2 years ago

ansiwen commented 2 years ago

This change makes the client call cancelable by removing all Lwt.async calls and replacing Lwt.wait with Lwt.task. It's necessary to be cancelable in order to be able to make use of an error_handler.