(defsys nm system-spec)
defonce a system at the given var
defonce a system at the given var
(reinit! sys)
re-initialise a system. Errors are cleared and any pending system-spec is used to initialise a new system
{}
)re-initialise a system. Errors are cleared and any pending system-spec is used to initialise a new system - returns the system-map, minus implementation keys (which will be `{}`)
(reset-spec! sys system-spec)
reset the system-spec - this will not take effect until the system is restarted
reset the system-spec - this will not take effect until the system is restarted
(spec sys)
return the current system-spec. this may not reflect the running system, if the system-spec has been reset
return the current system-spec. this may not reflect the running system, if the system-spec has been reset
(start! sys)
(start! sys opts)
start a system. idempotent - does nothing if the system is already started
start a system. idempotent - does nothing if the system is already started - returns the system-map, minus any implementation keys
(stop! sys)
(stop! sys opts)
stop a system. idempotent - does nothing if the system is already stopped
{}
after a successful stop!
)stop a system. idempotent - does nothing if the system is already stopped - returns the system-map, minus any implementation keys (which will be `{}` after a successful `stop!`)
(system-map sys)
return the full active system-map, including the implementation keys
return the full active system-map, including the implementation keys
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close