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

module libtmux-scala

Flows

An Ox Flow over a subscription or a live view, for a supervised scope. Ox adds no new handle type (io.github.libtmux.scaladsl's opaque handles work unchanged inside a fork); what it needs from this project is the same single-owner discipline the direct-style Observation and LiveView already give a blocking caller, expressed as a cold Flow instead of an Iterator.

Source and package
Qualified name
io.github.libtmux.scaladsl.ox.Flows
Package
io.github.libtmux.scaladsl.ox
Distribution
io.github.libtmux:libtmux-scala_3
Source
libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala
object Flows

Members2 members

  • liveView The current view when collection starts, then the latest newer view available at each read. Intermediate views may coalesce. Completes when the view is closed, and fails with its cause when the anchor session or server has gone.
  • subscription One Flow element per step: an event this subscription kept, or a gap naming what was lost. Collecting the flow takes the subscription for good, through the Java subscription's own single-reader claim, and closes it when the collection ends. A second collection is refused as it starts, before it can disturb the first. The flow fails with the control client's cause if the client ended the subscription.
Esc
Search in

Type to search.

Reference previewOpen reference