(call f & args)
Returns a component that calls (apply f args)
when started.
The behaviour when receiving a start signal more than once depends on the return value. If the last return value was nil, then f will be called again. Otherwise, f will not be called.
Always becomes nil when stopped.
Returns a component that calls `(apply f args)` when started. The behaviour when receiving a start signal more than once depends on the return value. If the last return value was nil, then f will be called again. Otherwise, f will not be called. Always becomes nil when stopped.
(expand-inline-defs system)
Expands inline component definitions into full definitions. Replaces the inline definitions with references to the full definitions.
Inline component definitions are maps with a :donut.system/start key which are inside of another component's :donut.system/config map.
Expands inline component definitions into full definitions. Replaces the inline definitions with references to the full definitions. Inline component definitions are maps with a :donut.system/start key which are inside of another component's :donut.system/config map.
(first-cycle system)
Returns the first cycle discovered in the system, or nil if there are no cycles.
Returns the first cycle discovered in the system, or nil if there are no cycles.
(inline-defs component-def)
Returns a seq of inline component definitions found inside of a given component definition.
Inline component definitions are maps with a :donut.system/start key which are inside of another component's :donut.system/config map.
Returns a seq of inline component definitions found inside of a given component definition. Inline component definitions are maps with a :donut.system/start key which are inside of another component's :donut.system/config map.
(merge & ms)
Returns a component that merges ms when started.
Differs from [[clojure.core/merge]] by always returning a map and never nil. This makes it easy to distinguish between a started but empty component and a component that was not yet started.
Always becomes nil when stopped.
Returns a component that merges ms when started. Differs from [[clojure.core/merge]] by always returning a map and never nil. This makes it easy to distinguish between a started but empty component and a component that was not yet started. Always becomes nil when stopped.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close