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.
(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.
(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.
(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.
(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.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 |