Liking cljdoc? Tell your friends :D

barebuild.resource


carry-overcljs

(carry-over resource)

The part of resource the next connection inherits, and the only part that survives a boot. An in-flight write's slot has to still be there when its ack lands, its counter has to keep counting so the next write cannot mint an id the orphan already answers to, and :last-write has to be there for that ack to settle. Reads need none of it. Slot and counter come off the table so a renamed slot moves both halves.

The part of `resource` the next connection inherits, and the only part that survives a boot. An
in-flight write's slot has to still be there when its ack lands, its counter has to keep counting
so the next write cannot mint an id the orphan already answers to, and `:last-write` has to be
there for that ack to settle. Reads need none of it. Slot and counter come off the table so a
renamed slot moves both halves.
sourceraw docstring

initialcljs

(initial {:keys [resource/id endpoint url-intent history-policy request-config
                 carried]})

The resource a fresh connection starts from, and the one place its shape is written down. request-config is whatever the host declared as attributes, carried what carry-over selected out of the connection before this one. Both win over the defaults.

The resource a fresh connection starts from, and the one place its shape is written down.
`request-config` is whatever the host declared as attributes, `carried` what `carry-over`
selected out of the connection before this one. Both win over the defaults.
sourceraw docstring

pending?cljs

(pending? resource)

True while a read is in flight, or the current intent has no answer yet.

True while a read is in flight, or the current intent has no answer yet.
sourceraw docstring

projectcljs

(project resource)

The fields a consumer may depend on, everything else being internal bookkeeping. Nothing here keeps the id of the exchange that produced it, so two identical refetches, refusals or writes project equal views.

The fields a consumer may depend on, everything else being internal bookkeeping. Nothing here
keeps the id of the exchange that produced it, so two identical refetches, refusals or writes
project equal views.
sourceraw docstring

stepcljs

(step resource event)

Takes a resource and an event, returns {:resource <the resource the event left behind> :effects [<what the executor must perform>]}. The :notify-consumers is appended here, once, when the view moved, so no transition places one.

Takes a resource and an event, returns {:resource <the resource the event left behind>
:effects [<what the executor must perform>]}. The :notify-consumers is appended here, once, when
the view moved, so no transition places one.
sourceraw docstring

writing?cljs

(writing? resource)

True while a write is in flight.

True while a write is in flight.
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