libtmux Reference MCP Search
On this page

io.github.libtmux.control.EventSubscription.EventSubscription.next

View as Markdown

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
next ( ) Optional<T> ( timeout : Duration ) Optional<T>
methodoverload2 overloads [source]
methodoverload2 overloads [source]
next

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

0 declared, 0 inherited

Esc

Type to search.