(nanos-from unit n)
Returns the nanoseconds in <n> time <unit>.
Returns the nanoseconds in <n> time <unit>.
(with-lock lock-expr & body)
Runs <body> after calling .lock()
on the provided lock.
Runs <body> after calling `.lock()` on the provided lock.
(with-try-lock lock-expr & body)
Same as with-lock
, but uses tryLock()
instead,
and therefore may end up not running <body> (i.e. doesn't wait).
Same as `with-lock`, but uses `tryLock()` instead, and therefore may end up not running <body> (i.e. doesn't wait).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close