Skip to content

Added ability to use retry as context manager#14

Open
hzlmn wants to merge 3 commits intohellysmile:masterfrom
hzlmn:context_patch
Open

Added ability to use retry as context manager#14
hzlmn wants to merge 3 commits intohellysmile:masterfrom
hzlmn:context_patch

Conversation

@hzlmn
Copy link

@hzlmn hzlmn commented Nov 9, 2017

related to #12

Copy link
Owner

@hellysmile hellysmile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it breaks decorator usage?

return self._wrapper

@asyncio.coroutine
def __aexit__(self, exc_type, exc_val, exc_tb):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return self.exit

raise NotImplementedError


class retry(object):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove object please

@hzlmn
Copy link
Author

hzlmn commented Nov 10, 2017

@hellysmile fixed, also added workaround for usage as decorator so now it does not break current api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants