method libtmux-java latest
EventSubscription.poll
Returns the next step if one is waiting, without blocking.
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
-
- 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
-
-
Illegal
State – if another read is in progress, or a stream or publisher owns this subscriptionException
-
Discussed in Getting started