Exit polling early if condition is already met
Merge pull request #2 from github/optimize

Exit polling early if condition is already met