This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import threading | |
| class Client: | |
| def __enter__(self): | |
| return self | |
| def __exit__(self, exc_type, exc_value, traceback): | |
| self.loop.call_soon_threadsafe(self.loop.stop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sys import Type | |
| from typing import List | |
| class Policy: | |
| ... | |
| class RetryPolicy(Policy): | |
| def __init__(self, max_retries=4, timeout=None): |
NewerOlder