Liking cljdoc? Tell your friends :D

peripheral.component.lifecycle


active-lifecycle-fnclj

(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.
sourceraw docstring

apply-lifecycleclj

(apply-lifecycle component lifecycles k)

Apply the given lifecycle function.

Apply the given lifecycle function.
sourceraw docstring

assert-class-consistencyclj

(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.
sourceraw docstring

concurrentlyclj

(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.
sourceraw docstring

passive-lifecycle-fnclj

(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.
sourceraw docstring

start-allclj

(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.
sourceraw docstring

start-fieldsclj

(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.
sourceraw docstring

stop-allclj

(stop-all component-seq)

Stop all components, ignoring exceptions.

Stop all components, ignoring exceptions.
sourceraw docstring

stop-fieldsclj

(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`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close