Push source for roster changes, so the grid repaints when the swarm changes instead of on a fixed poll.
The host's swarm store announces slave-row changes through a subscribe fn resolved by symbol, never required: when it is absent the caller keeps polling at its configured period.
Push source for roster changes, so the grid repaints when the swarm changes instead of on a fixed poll. The host's swarm store announces slave-row changes through a subscribe fn resolved by symbol, never required: when it is absent the caller keeps polling at its configured period.
How long a pushed change waits before the repaint, so a burst of swarm transactions costs one refresh.
How long a pushed change waits before the repaint, so a burst of swarm transactions costs one refresh.
Tick period while change pushes drive the repaints. It only keeps time-based text current: ages, lingering exits, staleness.
Tick period while change pushes drive the repaints. It only keeps time-based text current: ages, lingering exits, staleness.
(subscribe! key on-change)(subscribe! key on-change resolve)Subscribe ON-CHANGE (no args) under KEY to the host's slave changes.
RESOLVE is (fn [sym] -> fn or nil), default a guarded requiring-resolve.
Returns a 0-arity close fn, or nil when the host offers no push source.
Subscribe ON-CHANGE (no args) under KEY to the host's slave changes. RESOLVE is (fn [sym] -> fn or nil), default a guarded `requiring-resolve`. Returns a 0-arity close fn, or nil when the host offers no push source.
Qualified symbol of the host's (fn [key on-change]) slave-change subscription.
Qualified symbol of the host's (fn [key on-change]) slave-change subscription.
(tick-ms config pushed? poll-ms)Refresh period from CONFIG: the idle period when PUSHED?, else the poll period POLL-MS.
Refresh period from CONFIG: the idle period when PUSHED?, else the poll period POLL-MS.
Qualified symbol of the matching (fn [key]) unsubscribe.
Qualified symbol of the matching (fn [key]) unsubscribe.
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 |