Joins a hook arrival to the registry and the event system.
Effects arrive as an injected map (:registry :deregister! :dispatch!)
rather than as direct calls on hive-tmux.state and hive-events, so the
whole arrival path is exercised against recording fns.
Joins a hook arrival to the registry and the event system. Effects arrive as an injected map (`:registry` `:deregister!` `:dispatch!`) rather than as direct calls on `hive-tmux.state` and `hive-events`, so the whole arrival path is exercised against recording fns.
(default-ports)The production effects: the live pane registry and the event system.
The production effects: the live pane registry and the event system.
(dispatch-fn ports)The listener dispatch! for PORTS.
Never throws: the listener's accept loop must survive a handler fault, and an arrival that cannot be reconciled is a logged event rather than a dead ingestion path.
The listener `dispatch!` for PORTS. Never throws: the listener's accept loop must survive a handler fault, and an arrival that cannot be reconciled is a logged event rather than a dead ingestion path.
(handle {:keys [registry deregister! dispatch!]} event)Apply one hook EVENT through PORTS. Returns the plan that was carried out.
The registry action runs before the event dispatch so a handler reading the registry sees it already reconciled: an externally-killed pane must not still be registered while its own death event is being handled.
Apply one hook EVENT through PORTS. Returns the plan that was carried out. The registry action runs before the event dispatch so a handler reading the registry sees it already reconciled: an externally-killed pane must not still be registered while its own death event is being handled.
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 |