A clojure idiomatic wrapper for JDK atomic types.
A clojure idiomatic wrapper for JDK atomic types.
(boolean v)Create an instance of atomic boolean.
Create an instance of atomic boolean.
A common abstraction for atomic types.
A common abstraction for atomic types.
(compare-and-set! _ v v')Perform the CAS operation.
Perform the CAS operation.
(eventually-set! _ v)Eventually set a new value.
Eventually set a new value.
(get _)Get the current value.
Get the current value.
(get-and-set! _ v)Set a new value and return the previous one.
Set a new value and return the previous one.
(set! _ v)Set a new value.
Set a new value.
A common abstraction for number atomic types.
A common abstraction for number atomic types.
(dec-and-get! _)Decrements the value and return it.
Decrements the value and return it.
(get-and-add! _ v)Adds a delta and return the previous value.
Adds a delta and return the previous value.
(get-and-dec! _)Decrements the value and return the previous one.
Decrements the value and return the previous one.
(get-and-inc! _)Increments the value and returns the previous one.
Increments the value and returns the previous one.
(inc-and-get! _)Increments the value and return it.
Increments the value and return it.
(long)(long n)Create an instance of atomic long with optional
initial value. If it is not provided, 0 will be
the initial value.
Create an instance of atomic long with optional initial value. If it is not provided, `0` will be the initial value.
(ref v)Create an instance of atomic reference.
Create an instance of atomic reference.
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 |