Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.activity.block

The Activity of one executed code block.

Host tool events are recorded FIFO off the tool-callback threads, running snapshots are coalesced before they reach a listener. A block ends its own calls, while an admitted Task can keep writing its Activity. Durable history is an injected store.

The Activity of one executed code block.

Host tool events are recorded FIFO off the tool-callback threads, running snapshots
are coalesced before they reach a listener. A block ends its own calls, while an
admitted Task can keep writing its Activity. Durable history is an injected store.
raw docstring

hold!clj

(hold! {:keys [tasks phase on-late-snapshot] block-error :error :as block}
       task-id)

Keep the dispatcher open for a Task admitted before it runs. Return its release function.

Keep the dispatcher open for a Task admitted before it runs. Return its release function.
sourceraw docstring

record!clj

(record! block tool-event)
(record! {:keys [store collector on-event state error phase tasks] :as block}
         task-id
         tool-event)

Record a lifecycle event. After the block ends, only its admitted Tasks can record.

Record a lifecycle event. After the block ends, only its admitted Tasks can record.
sourceraw docstring

settle!clj

(settle! {:keys [dispatch! state error phase tasks] :as block} envelope)

End the block's part of Activity and return its current projection in the envelope.

End the block's part of Activity and return its current projection in the envelope.
sourceraw docstring

start!clj

(start! {:keys [store on-snapshot on-late-snapshot on-event]})

Open the Activity of one block and its serial worker.

store, when present, keeps the Activity durable: {:history-id id :apply! (fn [event] state) :settle! (fn [outcome summary selection]) :page (fn [] page)}. Without one the Activity lives in memory for the block. on-snapshot receives coalesced presentations; on-late-snapshot receives the Task's last revision after block exit. on-event sees the events recorded before block exit. Answers the block that record! and settle! take.

Open the Activity of one block and its serial worker.

`store`, when present, keeps the Activity durable:
`{:history-id id :apply! (fn [event] state) :settle! (fn [outcome summary selection]) :page (fn [] page)}`.
Without one the Activity lives in memory for the block. `on-snapshot` receives
coalesced presentations; `on-late-snapshot` receives the Task's last revision
after block exit. `on-event` sees the events recorded before block exit.
Answers the block that [[record!]] and [[settle!]] take.
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