Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-java latest

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
Esc

Type to search.

Reference previewOpen reference