(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.
(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.
(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.
(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.
(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.(writing? resource)True while a write is in flight.
True while a write is in flight.
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 |