This extension provides a defstate
that auto-starts on first use.
Use set-autostart-fn!
to configure which fn should be used to start the states.
This extension provides a `defstate` that auto-starts on first use. Use `set-autostart-fn!` to configure which fn should be used to start the states.
The fn that will be called to automatically start any state that has been deref'd but not started. If this fn is unsuccessful in starting the state, the standard error handling will occur.
The fn that will be called to automatically start any state that has been deref'd but not started. If this fn is unsuccessful in starting the state, the standard error handling will occur.
(defstate name & args)
Defines a state that will be auto-started on first deref, including its dependencies.
See mount.lite/defstate
for more information.
Defines a state that will be auto-started on first deref, including its dependencies. See `mount.lite/defstate` for more information.
(set-autostart-fn! fn)
Configures autostart-fn
use by AutoStartState
during state deref.
Configures `autostart-fn` use by `AutoStartState` during state deref.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close