You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#368, as retry() in its current form is broke and won't work within a
`with` block. The function is deprecated and will be removed in 0.13.x. 0.12.x
will warn when using it.
retry_until() is now available and will either raise or return False if raise=False
is passed.
See also:
- tmux-python/tmuxp#620
- tmux-python/tmuxp#704 (comment)
- Try out sphinx-autoapi for its table of contents generation ({issue}`367`)
24
24
25
+
### Testing
26
+
27
+
-`retry()`: Add deprecation warning. This will be removed in 0.13.x ({issue}`368`, {issue}`372`)
28
+
- New function `retry_until()`: Polls a callback function for a set period of time until it returns `True` or times out. By default it will raise {exc}`libtmux.exc.WaitTimeout`, with `raises=False` it will return `False`. Thank you @categulario! ({issue}`368`, {issue}`372`)
0 commit comments