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-rs latest

TestServerBuilder.lifecycle_timeout

Configure the bounded startup and graceful-shutdown observation time.

Source and package
Qualified name
libtmux::test::TestServerBuilder::lifecycle_timeout
Module
test
Declared in
TestServerBuilder
Package
libtmux
Source
crates/libtmux/src/test.rs
#[must_use = "use the returned builder to retain the lifecycle timeout"] pub fn lifecycle_timeout( mut self, timeout: Duration ) -> Self

Description#

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));
Parameters
Esc

Type to search.

Reference previewOpen reference