libtmux's `while`-loop based `retry()` doesn't work. Move to call to poll for a truthy response. Related: - libtmux: https://github.com/tmux-python/libtmux/issues/368, https://github.com/tmux-python/libtmux/pull/372 - https://github.com/tmux-python/tmuxp/issues/704#issuecomment-1128288348 - https://github.com/tmux-python/tmuxp/issues/620 (via #620)
libtmux's
while-loop basedretry()doesn't work. Move to call to poll for a truthy response.Related:
retry(seconds=...)broke libtmux#368, Modify retry() to take a callable and enforce the timeout libtmux#372