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

test.TestServerBuilder.lifecycle_timeout

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

View as Markdown

Module
test
Declared in
TestServerBuilder
Package
libtmux
Source
crates/libtmux/src/test.rs
lifecycle_timeout ( mut , timeout : Duration ) → Self
method [source]
method [source]
lifecycle_timeout

Configure the bounded startup and graceful-shutdown observation time.

On targets without a safe non-reaping child-exit observer, the graceful shutdown phase is capped at five seconds before forced cleanup.

Examples

use libtmux::test::TestServer;
let _builder = TestServer::builder()
.lifecycle_timeout(std::time::Duration::from_secs(1));

0 declared, 0 inherited

Esc

Type to search.