typealias libtmux-scala latest
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
- opaque type LiveView <: Auto
Closeable = JavaServer object LiveViewMirror -
Discussed in Compatibility
Members8 members#
Other members8 members#
- asJava method The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state.
- attach method Listens through a control client attached to
anchor, rebuilding on every announcement. - awaitNewer method Waits for a view newer than
epoch, or empty whentimeoutpassed first or this mirror ended;isEndedandcausetell those apart. - cause method Why this mirror ended, when something other than
closeended it. - current method The latest published view. Never blocks.
- isEnded method Whether this mirror has stopped publishing, because it was closed or its anchor has gone.
- snapshots method The current view, then every newer one, one per notification, blocking between them: as a
StateFlowor an fs2Signaldoes. A change made before this call is in the first view rather than lost between readingcurrentand starting to iterate. Ends when this view is closed, and throwscausewhen its anchor or server has gone. - snapshotsAfter method Every view newer than
epoch, one per notification, blocking between them. A view already published afterepochcomes first, so nothing is missed between reading a view and starting to iterate. Ends and throws assnapshotsdoes.