Core LibraryalphaAPI 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.

function LibTmux.jl latest

wait_for_quiet

Source and package
Qualified name
LibTmux.wait_for_quiet
Module
LibTmux
Package
LibTmux
Source
src/waits.jl

Methods#

Consume output until no event is received for quiet seconds, within one total deadline. Each received event restarts only the inactivity interval. The result has evidence == :quiet; inactivity does not prove process completion or success. It covers this client's observed stream, not atomic daemon silence.

wait_for_quiet(stream::ObservationStream; quiet=0.1, timeout=5.0,
cancel=nothing, max_bytes=65536, invalid=:error, mode=:raw)

Tail retention and UTF-8 use wait_for 's policy; incomplete UTF-8 stays explicit in pending_bytes . A shorter total deadline raises DeadlineExceeded rather than reporting quiet. Cancellation, overflow, target loss and EOF propagate. The caller keeps ownership of the stream. No polling or extra reader is used.

Parameters

Guides#

Pages that discuss wait_for_quiet.

Observing output

Esc

Type to search.

Reference previewOpen reference