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.poll

Package io.github.libtmux.control.EventSubscription.poll io.github.libtmux.control

Returns the next step if one is waiting, without blocking.

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
poll ( ) → Optional<Delivery<T>>
method [source]
Returns

the next gap or event, or empty when none is buffered; after the subscription has ended, empty once what it held is read

Raises
  • IllegalStateException – if another read is in progress, or a stream or publisher owns this subscription

Discussed in Getting started

Esc

Type to search.