package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

When your implementation raises an exception, that exception might happen before a value is returned or after a value is returned. The latter kind of exception is what the ~rest flag to Monitor.try_with is dealing with.

In both these cases, callback will be called with the exception.

In the case where the exception raises before a value is returned, close_connection_if_no_return_value determines whether the connection is closed. Exceptions raised after a value is returned will never close a connection.

type t = {
  1. callback : (exn -> unit) option;
  2. close_connection_if_no_return_value : bool;
}
val close_connection : t
val continue : t