package procord

  1. Overview
  2. Docs
type 'a process
val delegate : ('a, 'b) Procord_task.delegated_task -> 'a -> 'b process
val delegate_task_create_process : ?stderr:Unix.file_descr -> string -> string array -> ('a, 'b) Procord_task.delegated_task -> 'a -> 'b process
val delegate_task_socket : string -> int -> ('a, 'b) Procord_task.delegated_task -> 'a -> 'b process
type execution_error =
  1. | Worker_unknown_exception of string
  2. | Worker_killed
  3. | Worker_disconnected of exn
  4. | No_worker_available of string
exception Execution_error of execution_error
val error_message : execution_error -> string
type !'a status =
  1. | Working
  2. | Success of 'a
  3. | Exception of exn
  4. | Error of execution_error
val update : 'a process -> unit
val status : 'a process -> 'a status
val run : 'a process -> 'a
val kill : 'a process -> unit