mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
10 lines
339 B
Python
10 lines
339 B
Python
def retry(tries, delay=3, backoff=1, exceptions_to_check=Exception, retry_for_lambda=None):
|
|
print "tries", tries
|
|
print "log", log
|
|
print "delay", delay
|
|
print "backoff", backoff
|
|
print "exceptions_to_check", exceptions_to_check
|
|
print "retry_for_lambda", retry_for_lambda
|
|
|
|
|
|
retry(3, 2, retry_for_lambda=lambda x: not x) |