Liking cljdoc? Tell your friends :D

baby.pat.supatom


*supatomclj/s

(*supatom & configs)

Wrapper for creating supatom's from maps.

Wrapper for creating supatom's from maps.
raw docstring

backup->clj/s

(backup-> {:keys [source-atom destination-atom]})
(backup-> source-atom dest)

Create a backup atom.

Create a backup atom.
raw docstring

commit-withclj/smultimethod


count->clj/s

(count-> {:keys [source-atom path]})
(count-> source-atom path)

Returns the count in the atom along the supplied path.

Returns the count in the atom along the supplied path.
raw docstring

cursor->clj/s

(cursor-> {:keys [source-atom path]})
(cursor-> source-atom path)

Creates a cursor from the supplied atom using a supplied path.

Creates a cursor from the supplied atom using a supplied path.
raw docstring

fresh-lockclj/s

(fresh-lock)

head->clj/s

(head-> {:keys [source-atom path quantity]})
(head-> source-atom path quantity)

Returns the first quantity entries from the atom.

Returns the first `quantity` entries from the atom.
raw docstring

IPersistclj/sprotocol

commitclj/s

(commit this)

snapshotclj/s

(snapshot this)

Alias to create simple supalink functions.

Alias to create simple supalink functions.
raw docstring

(map->Supalink {:keys [source-atom get-with set-with meta validate-with
                       watches-atom trigger-with id]})

Takes a map and creates a supalink.

Takes a map and creates a supalink.
raw docstring

snapshot-withclj/smultimethod


(supalink config)
(supalink source-atom get-with)
(supalink source-atom get-with set-with)

Simplest supalink creation function

Simplest supalink creation function
raw docstring


supalink?clj/s

(supalink? thing)

Is a thing a supalink?

Is a thing a supalink?
raw docstring

supatomclj/s

(supatom overlay-config)

Takes a config map and returns a function that takes another config map and makes a supatom.

Takes a config map and returns a function that takes another config map and makes a supatom.
raw docstring

supatom->clj/s

(supatom->)
(supatom-> overlay-config)

Simplest supatom creation function.

Simplest supatom creation function.
raw docstring

supatom-default-baseclj/s


supatom?clj/s

(supatom? thing)

Is a thing a supatom?

Is a thing a supatom?
raw docstring

tail->clj/s

(tail-> {:keys [source-atom path quantity]})
(tail-> source-atom path quantity)

Returns the last quantity entries from the atom.

Returns the last `quantity` entries from the atom.
raw docstring

with-lockingcljmacro

(with-locking lock & body)

xform->clj/s

(xform-> {:keys [source-atom xform destination-atom]})
(xform-> source-atom xform dest)

Xfroms a source atom to the destination atom using the supplied fn.

Xfroms a source atom to the destination atom using the supplied fn.
raw docstring

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

× close