Server.within
This server, with every command bounded by a deadline of the caller's choosing.
Source and package
- Qualified name
-
io.github .libtmux .Server. within - Package
- io.github.libtmux
- Declared in
Server- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
-
Description#
The per-call deadline. Every read and change made through the result, and through every handle taken from it, gives tmux this long rather than the server's default:
Shares this server's transport, so it has the same identity and its handles compare equal to this server's; closing it releases nothing.
#toBuilder()is not how to spell this: a server that owns its transport hands a derived server a transport of its own, which a caller bounding many calls would multiply.Examples#
List<String> screen = server.within(Duration.ofMillis(500)).panes().get(0).capture();- Parameters
- Raises
-
-
Illegal
Argument – if the timeout is not positiveException
-