(duration? x)
Return true if argument is a valid duration, false otherwise.
Return true if argument is a valid duration, false otherwise.
(get-thread-name)
Rreturn current thread name.
Rreturn current thread name.
(java8-or-higher?)
Return true if running in a Java (JVM) version 8 or higher, false otherwise.
Return true if running in a Java (JVM) version 8 or higher, false otherwise.
(make-duration time unit)
Create a preflex.type/IDuration instance from time and unit arguments.
Create a preflex.type/IDuration instance from time and unit arguments.
(now-iso-8601)
Return current ISO 8601 compliant date.
Return current ISO 8601 compliant date.
(now-millis)
(now-millis start-millis)
Return number of milliseconds elapsed since epoch, or since specified start time.
Return number of milliseconds elapsed since epoch, or since specified start time.
(now-nanos)
(now-nanos start-nanos)
Return number of nanoseconds elapsed since epoch, or since specified start time.
Return number of nanoseconds elapsed since epoch, or since specified start time.
(parse-duration duration-str)
Parse duration string as duration object.
Parse duration string as duration object.
(parse-nanos duration-str)
Parse duration string as nano seconds.
Parse duration string as nano seconds.
(resolve-time-unit unit)
Resolve given time unit as java.util.concurrent.TimeUnit instance.
Resolve given time unit as java.util.concurrent.TimeUnit instance.
(set-thread-name! tname)
Set current thread name.
Set current thread name.
(sleep-millis millis)
Sleep for specified number of milliseconds.
Sleep for specified number of milliseconds.
(with-thread-name thread-name & body)
Execute body of code after setting current thread name to the given name. Restore old name after the lexical scope is over. New threads spawned from the body of code will not inherit the specified name.
Execute body of code after setting current thread name to the given name. Restore old name after the lexical scope is over. New threads spawned from the body of code will not inherit the specified name.
(with-thread-name-prefix thread-name-prefix & body)
Execute body of code after setting current thread name to the given prefix appended with thread ID. Restore old name after the lexical scope is over. New threads spawned from the body of code will not inherit the specified prefix.
Execute body of code after setting current thread name to the given prefix appended with thread ID. Restore old name after the lexical scope is over. New threads spawned from the body of code will not inherit the specified prefix.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close