LiveView
A live view of one tmux server's sessions, windows, panes and clients, opaque over Java's own ServerMirror — re-snapshotting on notification, on a gap and on reconnect is entirely Java's job; this only wraps it, rather than re-deriving resnapshot-on-notification from a raw control subscription. close() comes from the AutoCloseable bound with no forwarding of its own.
Source and package
- Qualified name
-
io.github .libtmux .scaladsl .live. Live View - Package
- io.github.libtmux.scaladsl.live
- Distribution
- io.github.libtmux:libtmux-scala_3
- Source
- libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala
- opaque type LiveView <: Auto
Closeable = JavaServer object LiveViewMirror
Members8 members
- asJava The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state.
- attach Listens through a control client attached to
anchor, rebuilding on every announcement. - awaitNewer Waits for a view newer than
epoch, or empty whentimeoutpassed first or this mirror ended;isEndedandcausetell those apart. - cause Why this mirror ended, when something other than
closeended it. - current The latest published view. Never blocks.
- isEnded Whether this mirror has stopped publishing, because it was closed or its anchor has gone.
- snapshots The current view, then the latest newer view available at each read, blocking between them. Intermediate views may coalesce. The first element is the mirror's current published view. Ends when this view is closed, and throws
causewhen its anchor or server has gone. - snapshotsAfter The latest view newer than
epoch, then the latest newer view at each read, blocking between them. Intermediate views may coalesce. Ends and throws assnapshotsdoes.
Guides
task materialPages that discuss LiveView.