From 9d0ffbe6773c1f4ff6798b8e49e1bd0b6037a9c4 Mon Sep 17 00:00:00 2001 From: "jon.burvill" Date: Tue, 21 May 2024 12:17:35 +0100 Subject: [PATCH] https://github.com/litl/backoff/pull/150 Fix to allow trio event loop sleep. --- backoff/_sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backoff/_sync.py b/backoff/_sync.py index 6edef86..fc40dad 100644 --- a/backoff/_sync.py +++ b/backoff/_sync.py @@ -81,6 +81,7 @@ def retry_exception(target, wait_gen, exception, max_tries, max_time, jitter, giveup, on_success, on_backoff, on_giveup, raise_on_giveup, monotonic_time=None, + sleep=None, wait_gen_kwargs): @functools.wraps(target)