EventSubscription.next
Waits until the next step arrives or this subscription closes.
Source and package
- Qualified name
-
io.github .libtmux .control .Event Subscription. next - Package
- io.github.libtmux.control
- Declared in
EventSubscription- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java
-
- Type parameters
-
-
Tdeclared byEventSubscription<T>the event type
-
- Parameters
- Returns
-
the next gap or event, or empty when the subscription has closed and no gap is waiting for
next()the next gap or event, or empty when none arrived before the deadline for
next(timeout) - Raises
-
-
Illegal
State – if another read is in progress, or a stream or publisher owns this subscriptionException -
Interrupted
Exception – if the waiting thread is interrupted -
Illegal
Argument – ifException timeoutis negative fornext(timeout)
-
Guides#
Pages that discuss next.