Clojure agent — Asynchronous State with send, await, and Background Updates | Episode 27
0views
C
CelesteAI
Description
Some state changes shouldn't block the caller. Log lines, metrics, cache warmers — you queue them and get back to work. Clojure's `agent` is built for exactly that: a container for one value, updated asynchronously on a background thread.