Rpc.Server
Rpc Server pattern
val queue_argument : Amqp_client_lib.Types.header
Recommended argument to add when declaring the rpc server queue. This will set the dead letter exchange to the header exchange to help clients to be notified if a request has timed out
val start :
?async:bool ->
?discard_redelivered:bool ->
[< `Failed | `Ok ] as 'a Channel.t ->
Queue.t ->
(Message.message -> Message.message Thread.Deferred.t) ->
'a t Thread.Deferred.t
Start an rpc server producing replies for requests coming in on the given queue.
val stop : _ t -> unit Thread.Deferred.t
Stop the server