(active-lifecycle-fn pre-fn f)
Create active lifecycle function, allowed to modify the input component.
Create active lifecycle function, allowed to modify the input component.
(apply-lifecycle component lifecycles k)
Apply the given lifecycle function.
Apply the given lifecycle function.
(assert-class-consistency k component component')
Make sure both components have the same class, otherwise throw Exception.
Make sure both components have the same class, otherwise throw Exception.
(concurrently component-seq)
Tag the seq of components as elligible to be concurrently started. The return value is the same sequence of components, but #'start-all will start them concurrently.
Tag the seq of components as elligible to be concurrently started. The return value is the same sequence of components, but #'start-all will start them concurrently.
(passive-lifecycle-fn pre-fn f)
Create passive lifecycle function, returning the input untouched - unless
pre-fn
, a preprocessor fn, is given.
Create passive lifecycle function, returning the input untouched - unless `pre-fn`, a preprocessor fn, is given.
(start-all component-seq)
Try to start all components in the given seq; shutting them down again if any startup fails.
Try to start all components in the given seq; shutting them down again if any startup fails.
(start-fields component field->fns)
Start all fields within the given component. Expects a seq of
[field {:start ..., :stop ...}]
tuples.
Start all fields within the given component. Expects a seq of `[field {:start ..., :stop ...}]` tuples.
(stop-all component-seq)
Stop all components, ignoring exceptions.
Stop all components, ignoring exceptions.
(stop-fields component field->fns)
Stop all fields within the given component. Expects the same
input as start-fields
.
Stop all fields within the given component. Expects the same input as `start-fields`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close