zhebrak / expoff

Production ready implementation of Exponential Fuckoff algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

expoff

Production ready implementation of Exponential Fuckoff algorithm. Repeat your functions with exponentially diminishing timeout until you're done.

from expoff import exponential_fuckoff

@exponential_fuckoff
def get_infinity():
    return 1 / 0

get_infinity()

each call is made 2x sooner than previous!

Repeating get_infinity #1
Repeating get_infinity #2
Repeating get_infinity #3
Repeating get_infinity #4
Repeating get_infinity #5
Repeating get_infinity #6
Repeating get_infinity #7
...

About

Production ready implementation of Exponential Fuckoff algorithm

License:MIT License


Languages

Language:Python 100.0%