Rpc.Client
Rpc Client pattern
val init : id:string -> Connection.t -> t Thread.Deferred.t
Initialize a client with the id
for tracing
val call :
t ->
?correlation_id:string ->
ttl:int ->
?grace_time_ms:int ->
routing_key:string ->
headers:Amqp_client_lib.Types.header list ->
_ Exchange.t ->
(Spec.Basic.Content.t * string) ->
Message.message option Thread.Deferred.t
Make an rpc call to the exchange using the routing key and headers.
val close : t -> unit Thread.Deferred.t
Release resources