Concurrency gates for ChromaDB reads/writes and the shared embed port.
ChromaDB uses SQLite internally: read (4 permits) and write (1 permit) derefs retain their hive-weave gates. Embeddings use the ONE process-wide provider gate from embeddings.shared-gate, never a Chroma-only pool. Do not nest with-embedding-gate around a decorated provider call.
Concurrency gates for ChromaDB reads/writes and the shared embed port. ChromaDB uses SQLite internally: read (4 permits) and write (1 permit) derefs retain their hive-weave gates. Embeddings use the ONE process-wide provider gate from embeddings.shared-gate, never a Chroma-only pool. Do not nest with-embedding-gate around a decorated provider call.
(deref-read promise)(deref-read promise timeout-ms)Deref a Chroma read promise with concurrency gate + timeout. Replaces: @(chroma/query ...) or @(chroma/get ...)
Deref a Chroma read promise with concurrency gate + timeout. Replaces: @(chroma/query ...) or @(chroma/get ...)
(deref-write promise)(deref-write promise timeout-ms)Deref a Chroma write promise with exclusive gate + timeout. Replaces: @(chroma/add ...) or @(chroma/delete ...)
Deref a Chroma write promise with exclusive gate + timeout. Replaces: @(chroma/add ...) or @(chroma/delete ...)
(gate-stats)Current state of Chroma read/write and the one shared embedding provider gate. With no host the embed gate reports one permit, all available.
Current state of Chroma read/write and the one shared embedding provider gate. With no host the embed gate reports one permit, all available.
Diagnostic snapshot of the read, write and embed gates.
Diagnostic snapshot of the read, write and embed gates.
A deref-able vendor result (promise, future, deferred). Generates a realized promise.
A deref-able vendor result (promise, future, deferred). Generates a realized promise.
(with-embedding-gate & body)Legacy macro for callers outside the EmbeddingProvider port. Never wrap a decorated provider call with it: admission there already owns the permit. Admits through the host's ONE process-wide embedding gate; with no host, the body runs ungated (there is no provider to protect).
Legacy macro for callers outside the EmbeddingProvider port. Never wrap a decorated provider call with it: admission there already owns the permit. Admits through the host's ONE process-wide embedding gate; with no host, the body runs ungated (there is no provider to protect).
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 |