Liking cljdoc? Tell your friends :D

hive-olympus.presenter

The presenter seat: harness targets registered by id, each receiving the view delta since its own last successful delivery.

A target is (fn [ops]) where ops is a vector of hive-vessel op maps. A target that throws is marked :degraded with its error and keeps its last successful delivery, so the next broadcast retries the full delta; it never affects another presenter. Callers serialize seat mutations.

The presenter seat: harness targets registered by id, each receiving the
view delta since its own last successful delivery.

A target is (fn [ops]) where ops is a vector of hive-vessel op maps. A
target that throws is marked :degraded with its error and keeps its last
successful delivery, so the next broadcast retries the full delta; it never
affects another presenter. Callers serialize seat mutations.
raw docstring

broadcast!clj

(broadcast! seat current)

Offer CURRENT panels to every presenter on SEAT. Returns the status map.

Offer CURRENT panels to every presenter on SEAT. Returns the status map.
sourceraw docstring

createclj

(create)

A new, empty seat atom.

A new, empty seat atom.
sourceraw docstring

register!clj

(register! seat id target current)

Register TARGET under ID on SEAT and catch it up to CURRENT panels. Re-registering the same target keeps its delivery history; a different target starts fresh. Returns ID, or nil when TARGET is not a fn.

Register TARGET under ID on SEAT and catch it up to CURRENT panels.
Re-registering the same target keeps its delivery history; a different
target starts fresh. Returns ID, or nil when TARGET is not a fn.
sourceraw docstring

statusclj

(status seat)

id -> {:status :live|:degraded|:pending, :deliveries n, :error msg?}.

id -> {:status :live|:degraded|:pending, :deliveries n, :error msg?}.
sourceraw docstring

unregister!clj

(unregister! seat id)

Forget ID on SEAT. Returns ID, or nil when it was not registered.

Forget ID on SEAT. Returns ID, or nil when it was not registered.
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