(concurrent & subs)Returns a subscribable that yields a vector of the values of all the given subs in the same order.
Returns a subscribable that yields a vector of the values of all the given subs in the same order.
(indexed & subs)Returns a subscribable that yields the values of all of the given
subs as they come in, as a tuple [idx value] with the position of
the corresponding sub.
Returns a subscribable that yields the values of all of the given subs as they come in, as a tuple `[idx value]` with the position of the corresponding sub.
(map sub f & args)Returns a subscribable that yields the same values as sub, but piped through (f value & args).
Returns a subscribable that yields the same values as `sub`, but piped through `(f value & args)`.
(serialized & subs)Returns a subscribable that yields the values of the given subs as they come in.
Returns a subscribable that yields the values of the given subs as they come in.
(simple make-unsub-action make-sub-action & sub-args)Returns a subscribable based on the given functions that make
subscribe and unsubscribe actions. Extra arguments are appended only
to the call to make-sub-action.
Returns a subscribable based on the given functions that make subscribe and unsubscribe actions. Extra arguments are appended only to the call to `make-sub-action`.
(sliding-window sub size)Returns a subscribable on a vector of the most recent size
values of sub. The newest value will be last. Initially the vector
is padded with nils.
Returns a subscribable on a vector of the most recent `size` values of `sub`. The newest value will be last. Initially the vector is padded with nils.
(subs-handler content)A non-app-state wrapper class that handles the subscription actions update-subs and clear-subs.
A non-app-state wrapper class that handles the subscription actions [[update-subs]] and [[clear-subs]].
(subscribable make-unsub-action make-sub-action & args)Returns a subscribable based on the given functions that make subscribe and unsubscribe actions. Extra arguments are appended to both calls to those function.
Returns a subscribable based on the given functions that make subscribe and unsubscribe actions. Extra arguments are appended to both calls to those function.
(subscribable? v)Returns true if the given value is a subscribable.
Returns true if the given value is a subscribable.
(subscribe-to sub f & args)A non-app-state class that subscribes to the
given subscribable sub as long as it's mounted, and and renders as (f value & args) where value is the most recent value from the
subscription, or nil initially.
A non-app-state class that subscribes to the given subscribable `sub` as long as it's mounted, and and renders as `(f value & args)` where `value` is the most recent value from the subscription, or `nil` initially.
A subscribable that never yields a value.
A subscribable that never yields a value.
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 |