If running on ClojureScript, we can have a different file for JS.
BTW, in this NS, we avoid using Spec / Orchestra.
## Platform-specific functions for the JVM. If running on ClojureScript, we can have a different file for JS. BTW, in this NS, we avoid using Spec / Orchestra.
(add-shutdown-hook fnToCallOnShutdown)
Add a shutdown hook. If nil
, simply ignores it.
The shutdown hook is run in a new thread.
Add a shutdown hook. If `nil`, simply ignores it. The shutdown hook is run in a new thread.
(exit-script retval)
Terminates execution with a return value.
Terminates execution with a return value.
(read-env var)
Reads an environment variable. If undefined, returns nil.
Reads an environment variable. If undefined, returns nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close