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.
(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.
(health worker)Worker process liveness. Returns Result.
Worker process liveness. Returns Result.
(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.
(stop! worker)Stop the worker and release its process. Returns Result.
Stop the worker and release its process. Returns Result.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |