Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

io.github.libtmux.Server.Server.within

Java
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
io.github.libtmux.Server
Declared in
Server
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Server.java
within ( timeout : Duration ) → Server
method [source]
method [source]
within

This server, with every command bounded by a deadline of the caller's choosing.

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();
Raises

0 declared, 0 inherited

Esc

Type to search.