Answer stability round 1: 0 🔴, 1 🟡; test the exit 1 a rejected reply that cannot be archived causes, and tidy keep's type and docstrings
This commit is contained in:
@@ -15,7 +15,7 @@ UNKNOWN_RESET_POLL = 600
|
||||
|
||||
|
||||
def retried(who: str, attempt: typing.Callable[[], T | Failure | Limited], effects: Effects, keep: typing.Callable[[Failure], Stop | None] = lambda failure: None) -> T | Stop:
|
||||
"""The attempt's result, retried on a failure; keep sees each failure before the retry, and a Stop from it ends the retrying."""
|
||||
"""The attempt's result, retried on a failure; keep sees each failure, the last of three included, and a Stop from it ends the retrying."""
|
||||
failures = 0
|
||||
while True:
|
||||
result = attempt()
|
||||
|
||||
Reference in New Issue
Block a user