On this page
io.github.libtmux.control.EventSubscription.EventSubscription.next
- Module
- io.github.libtmux.control.EventSubscription
- Declared in
- EventSubscription
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java
-
Waits until the next event arrives or this subscription closes.
- Parameters
-
-
timeout ( Duration ) – how long to wait, zero to inspect the buffer without waiting
-
- Returns
-
the oldest buffered event, or empty when none arrived before the deadline
- Raises
-
-
IllegalArgumentException – if
timeoutis negative -
InterruptedException – if the waiting thread is interrupted
-
0 declared, 0 inherited