JJoeven

Exercises / python

Retry on timeout only

flaky() fails with timeout twice then returns ok. retry(fn, n) retries only if the result dict has error == timeout. Print the successful result and call count.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.