Module 1-S.Functions
The functions that can be run on this worker type
Parameters
C : Rpc_parallel__.Parallel_intf.Creator with type worker_state = Worker_state.t and type connection_state = Connection_state.t and type ('w, 'q, 'r) _function := ('w, 'q, 'r) _function and type ('w, 'q, 'r) _direct := ('w, 'q, 'r) _direct
Signature
type workertype worker_state_init_argtype worker_statetype connection_state_init_argtype connection_statetype 'worker functions
val functions : worker functionsval init_worker_state : worker_state_init_arg -> worker_state Async.Deferred.tinit_worker_stateis called with theinit_argpassed tospawnorserve
val init_connection_state : connection:Async.Rpc.Connection.t -> worker_state:worker_state -> connection_state_init_arg -> connection_state Async.Deferred.tinit_connection_stateis called with theinit_argpassed toConnection.clientconnectionshould only be used to registerclose_finishedcallbacks, not to dispatch.