Skip to content

Commit

Permalink
Declutter __init__ by using strategy selection
Browse files Browse the repository at this point in the history
Instead of having there be a complicated __init__
function that has to make a bunch of complicated
decisions this change moves the logic for making
those decisions into a set of helper functions that
now select the various wait/stop/reject strategies
to use when retrying.

This will hopefully make it easier to add new
strategies as well as move forward to a path where
users can provide there own strategies (if they
so want to).
  • Loading branch information
harlowja committed Jun 14, 2016
1 parent 1d56993 commit 74c931f
Showing 1 changed file with 264 additions and 119 deletions.
Loading

0 comments on commit 74c931f

Please sign in to comment.