Module type Rpc_parallel.Functions
type worker
type worker_state_init_arg
type worker_state
type connection_state_init_arg
type connection_state
type 'worker functions
val functions : worker functions
val init_worker_state : worker_state_init_arg -> worker_state Async.Deferred.t
init_worker_state
is called with theinit_arg
passed tospawn
orserve
val init_connection_state : connection:Async.Rpc.Connection.t -> worker_state:worker_state -> connection_state_init_arg -> connection_state Async.Deferred.t
init_connection_state
is called with theinit_arg
passed toConnection.client
connection
should only be used to registerclose_finished
callbacks, not to dispatch.