On this page
tmux.Poll
- 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
-
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.WaitForsignals tmux's separate wait-for channel.
0 declared, 0 inherited