libtmux Reference MCP Search
On this page

tmux.Poll

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/poll.go
Poll ( ctx : context.Context , interval : time.Duration , condition : func(context.Context) (bool, error) ) error
function [source]
function [source]
Poll

Poll checks condition immediately and then after each interval, until it reports true, returns an error, or ctx ends.

A condition receives ctx and must observe cancellation itself; Poll cannot interrupt one already running. Poll returns condition errors unchanged and ctx.Err when ctx ends first. Use Poll to wait for pane output; Server.WaitFor signals tmux's separate wait-for channel.

0 declared, 0 inherited

Esc

Type to search.