Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

typealias libtmux-scala

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.

Base types AutoCloseable
Source and package
Qualified name
io.github.libtmux.scaladsl.live.LiveView
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 <: AutoCloseable = JavaServerMirrorobject LiveView

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 when timeout passed first or this mirror ended; isEnded and cause tell those apart.
  • cause Why this mirror ended, when something other than close ended 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 cause when 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 as snapshots does.

Guides

task material

Pages that discuss LiveView.

Esc
Search in

Type to search.

Reference previewOpen reference