Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

ca.nickmertin.async-arbiter

Provides an async-enabled key-based mutual exclusion facility.

Provides an async-enabled key-based mutual exclusion facility.
raw docstring

simple-arbiterclj/s

(simple-arbiter)
(simple-arbiter comparator)

Creates a simple arbiter which handles multiple keys by locking in sequential order according to a comparator (by default, clojure.core/compare).

Creates a simple arbiter which handles multiple keys by locking in sequential order according to a comparator (by default, clojure.core/compare).
sourceraw docstring

stop!clj/s

(stop! a)

Shuts down an arbiter.

Shuts down an arbiter.
sourceraw docstring

with-lock!clj/smacro

(with-lock! a keys & body)

Locks the given keys, executes the body, and ensures that the keys are unlocked after. Must be called inside a (go ...) block. Parks while waiting for the keys to be locked.

Locks the given keys, executes the body, and ensures that the keys are unlocked after. Must be called inside a (go ...) block. Parks while waiting for the keys to be locked.
sourceraw docstring

with-lock!!cljmacro

(with-lock!! a keys & body)

Locks the given keys, executes the body, and ensures that the keys are unlocked after. Not intended for use in (go ...) blocks. Blocks while waiting for the keys to be locked.

Locks the given keys, executes the body, and ensures that the keys are unlocked after. Not intended for use in (go ...) blocks. Blocks while waiting for the keys to be locked.
sourceraw docstring

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

× close