Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux-java latest

EventSubscription.publisher

Package io.github.libtmux.control.EventSubscription.publisher io.github.libtmux.control

A Flow.Publisher view of this subscription's steps, delivered as demand allows.

View as Markdown

Source and package
Module
io.github.libtmux.control
Declared in
EventSubscription
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java
publisher ( ) → Flow.Publisher<Delivery<T>> ( executor : Executor ) → Flow.Publisher<Delivery<T>>
methodoverload2 overloads [source]

Description#

Reads that wait for the next step run on a fresh virtual thread, started only while a subscriber has outstanding demand, so a subscriber that never asks never blocks anything. Use #publisher(Executor) to read somewhere else instead.

@see #publisher(Executor)

Parameters
  • executor ( Executor ) – where each blocking read for the subscriber runs; one that runs a task on the calling thread makes request block on tmux, which the Reactive Streams rules forbid (for publisher(executor))

Esc

Type to search.