Provides an async-enabled key-based mutual exclusion facility.
Provides an async-enabled key-based mutual exclusion facility.
(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).
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |