Liking cljdoc? Tell your friends :D

preflex.util


duration?clj

(duration? x)

Return true if argument is a valid duration, false otherwise.

Return true if argument is a valid duration, false otherwise.
sourceraw docstring

get-thread-nameclj

(get-thread-name)

Rreturn current thread name.

Rreturn current thread name.
sourceraw docstring

java8-or-higher?clj

(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.
sourceraw docstring

make-durationclj

(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.
sourceraw docstring

now-iso-8601clj

(now-iso-8601)

Return current ISO 8601 compliant date.

Return current ISO 8601 compliant date.
sourceraw docstring

now-millisclj

(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.
sourceraw docstring

now-nanosclj

(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.
sourceraw docstring

parse-durationclj

(parse-duration duration-str)

Parse duration string as duration object.

Parse duration string as duration object.
sourceraw docstring

parse-nanosclj

(parse-nanos duration-str)

Parse duration string as nano seconds.

Parse duration string as nano seconds.
sourceraw docstring

resolve-time-unitclj

(resolve-time-unit unit)

Resolve given time unit as java.util.concurrent.TimeUnit instance.

Resolve given time unit as java.util.concurrent.TimeUnit instance.
sourceraw docstring

set-thread-name!clj

(set-thread-name! tname)

Set current thread name.

Set current thread name.
sourceraw docstring

sleep-millisclj

(sleep-millis millis)

Sleep for specified number of milliseconds.

Sleep for specified number of milliseconds.
sourceraw docstring

uuid-strclj

(uuid-str)
(uuid-str uuid)
source

with-thread-nameclj/smacro

(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.
sourceraw docstring

with-thread-name-prefixclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close