Malli value objects for hive-weave.budget: gate options, stats, the Result variants every admission path can yield, and the byte-fork-join workload shapes. The IBudgetGate predicate lives in hive-weave.budget (it needs the protocol).
Malli value objects for hive-weave.budget: gate options, stats, the Result variants every admission path can yield, and the byte-fork-join workload shapes. The IBudgetGate predicate lives in hive-weave.budget (it needs the protocol).
-acquire: {:ok granted-cost} or an admission error.
-acquire: {:ok granted-cost} or an admission error.
with-budget: {:ok thunk-value} or a BudgetError.
with-budget: {:ok thunk-value} or a BudgetError.
Units requested from a gate. Coerced with int; non-positive or
over-capacity costs are rejected as a value, not thrown.
Units requested from a gate. Coerced with `int`; non-positive or over-capacity costs are rejected as a value, not thrown.
Options for byte-budget-gate. :capacity is required.
Options for byte-budget-gate. :capacity is required.
Snapshot returned by -stats / byte-gate-stats. The admission totals are nil for hive-weave.gate.Gate, which does not count them.
Snapshot returned by -stats / byte-gate-stats. The admission totals are nil for hive-weave.gate.Gate, which does not count them.
[key value-or-fallback] — the collected form of one Submission.
[key value-or-fallback] — the collected form of one Submission.
What resolve-outcome reads off a Workload: only :key and :fallback.
What resolve-outcome reads off a Workload: only :key and :fallback.
Open: hive-weave.gate.Gate adds a :hint.
Open: hive-weave.gate.Gate adds a :hint.
A Workload in flight on a future.
A Workload in flight on a future.
A byte-fork-join task: [k thunk cost] or [k thunk cost fallback].
A byte-fork-join task: [k thunk cost] or [k thunk cost fallback].
ByteBudgetGate reports :inflight, hive-weave.gate.Gate :available.
ByteBudgetGate reports :inflight, hive-weave.gate.Gate :available.
Milliseconds to wait for admission; nil defers to the gate's default.
Milliseconds to wait for admission; nil defers to the gate's default.
A parsed Task (a Workload record).
A parsed Task (a Workload record).
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 |