Module type Parallel_managed.Worker
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val functions : unmanaged_t functionsAccessor for the functions implemented by this worker type
module Id : Core.Identifiableval id : t -> Id.tval spawn : ?where:Executable_location.t -> ?name:string -> ?env:(string * string) list -> ?connection_timeout:Core.Time.Span.t -> ?cd:string -> ?umask:int -> redirect_stdout:Fd_redirection.t -> redirect_stderr:Fd_redirection.t -> worker_state_init_arg -> connection_state_init_arg -> on_failure:(Core.Error.t -> unit) -> t Core.Or_error.t Async.Deferred.tval spawn_exn : ?where:Executable_location.t -> ?name:string -> ?env:(string * string) list -> ?connection_timeout:Core.Time.Span.t -> ?cd:string -> ?umask:int -> redirect_stdout:Fd_redirection.t -> redirect_stderr:Fd_redirection.t -> worker_state_init_arg -> connection_state_init_arg -> on_failure:(Core.Error.t -> unit) -> t Async.Deferred.tval run : t -> f:(unmanaged_t, 'query, 'response) Parallel.Function.t -> arg:'query -> 'response Core.Or_error.t Async.Deferred.trun tandrun_exn twill connect totif there is not already a connection, but if there is currently a connection that has gone stale, they will fail with an error. Trying again will attempt a reconnection.
val run_exn : t -> f:(unmanaged_t, 'query, 'response) Parallel.Function.t -> arg:'query -> 'response Async.Deferred.tval kill : t -> unit Core.Or_error.t Async.Deferred.tUsing these functions will not result in
on_failurereporting a closed connection, unlike running theshutdownfunction.
val kill_exn : t -> unit Async.Deferred.t