Liking cljdoc? Tell your friends :D

hive-weave.platform

Platform abstraction seam for hive-weave.

JVM subsystems keep their java.util.concurrent impls verbatim; this namespace supplies the cross-platform clock plus the ClojureScript async building blocks (a core.async counting semaphore and a timeout race) used by the :cljs branches of the subsystems.

Platform abstraction seam for hive-weave.

JVM subsystems keep their java.util.concurrent impls verbatim; this
namespace supplies the cross-platform clock plus the ClojureScript async
building blocks (a core.async counting semaphore and a timeout race) used
by the :cljs branches of the subsystems.
raw docstring

await-chancljs

(await-chan src timeout-ms)

Race src against a timeout. Chan yields [:value v] when src produces v, or [:timeout] after timeout-ms.

Race src against a timeout. Chan yields [:value v] when src produces v,
or [:timeout] after timeout-ms.
sourceraw docstring

ex-class-nameclj/s

(ex-class-name e)

Printable class/type name of a caught error.

Printable class/type name of a caught error.
sourceraw docstring

make-semaphorecljs

(make-semaphore permits)

Async counting semaphore. 1 permit = 1 caller-chosen unit.

Async counting semaphore. 1 permit = 1 caller-chosen unit.
sourceraw docstring

mono-nsclj/s

(mono-ns)

Monotonic nanoseconds for measuring durations.

Monotonic nanoseconds for measuring durations.
sourceraw docstring

now-msclj/s

(now-ms)

Wall-clock milliseconds.

Wall-clock milliseconds.
sourceraw docstring

sem-acquire!cljs

(sem-acquire! sem cost timeout-ms)

Chan yielding :acquired when cost permits are reserved, or :timeout after timeout-ms.

Chan yielding :acquired when `cost` permits are reserved, or :timeout
after timeout-ms.
sourceraw docstring

sem-availablecljs

(sem-available sem)

Currently-available permit count.

Currently-available permit count.
sourceraw docstring

sem-queue-lengthcljs

(sem-queue-length sem)

Number of async waiters parked on the semaphore (0 on sync paths).

Number of async waiters parked on the semaphore (0 on sync paths).
sourceraw docstring

sem-release!cljs

(sem-release! sem cost)

Return cost permits and grant waiting acquirers in FIFO order.

Return `cost` permits and grant waiting acquirers in FIFO order.
sourceraw docstring

sem-statscljs

(sem-stats sem)
source

sem-try-acquire!cljs

(sem-try-acquire! sem cost)

Non-blocking acquire of cost permits. Returns true when reserved (caller MUST sem-release! the same cost), false when unavailable.

Non-blocking acquire of `cost` permits. Returns true when reserved
(caller MUST sem-release! the same cost), false when unavailable.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close