Liking cljdoc? Tell your friends :D

hive-system.process.worker

IWorker implementation — a warm request/response worker over a long-lived process (hive-system.process IProcess). Requests/responses are newline- delimited EDN; a monotonic :id correlates each response. Calls are single- flight via a hive-weave gate (1 permit); reads are timeout-bounded.

IWorker implementation — a warm request/response worker over a long-lived
process (hive-system.process IProcess). Requests/responses are newline-
delimited EDN; a monotonic :id correlates each response. Calls are single-
flight via a hive-weave gate (1 permit); reads are timeout-bounded.
raw docstring

call!clj

(call! worker request timeout-ms)

Send request (a map) to worker, read one framed response. Returns Result.

Send request (a map) to worker, read one framed response. Returns Result.
sourceraw docstring

healthclj

(health worker)

Worker process liveness. Returns Result.

Worker process liveness. Returns Result.
sourceraw docstring

spawn-warm!clj

(spawn-warm! cmd)
(spawn-warm! cmd opts)

Spawn a warm worker over cmd (string or arg vector). The process reads newline-delimited EDN requests on stdin and writes one EDN response line per request. Returns Result with an IWorker. Opts: :dir, :env.

Spawn a warm worker over cmd (string or arg vector). The process reads
newline-delimited EDN requests on stdin and writes one EDN response line per
request. Returns Result with an IWorker. Opts: :dir, :env.
sourceraw docstring

stop!clj

(stop! worker)

Stop the worker and release its process. Returns Result.

Stop the worker and release its process. Returns Result.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close