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

class libtmux-scala

LiveServer

Observe a tmux server through a continuously updated signal.

Source and package
Qualified name
io.github.libtmux.scaladsl.cats.LiveServer
Package
io.github.libtmux.scaladsl.cats
Distribution
io.github.libtmux:libtmux-scala_3
Source
libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala
final class LiveServer[F[_]]object LiveServer

Description

LiveServer.attach returns a Resource that closes the Java ServerMirror when released. Read failure to distinguish a quiet server from a stopped poller.

Type parameters
  • F for LiveServer() [overload 1]

Members3 members

  • attach method Listens through a control client attached to anchor, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is ServerMirror's own reconnect-or-TargetGoneException policy, surfaced through LiveServer#failure like any other cause.
  • failure method None while still live; Some(cause) once the background poller has died. Never blocks.
  • signal property

Guides

task material

Pages that discuss LiveServer.

Esc
Search in

Type to search.

Reference previewOpen reference