This file contains 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 | |
trigger_exception_event = asyncio.Event() | |
async def coro_1(): | |
for _ in range(10): | |
print("I'm coro 1 from tg 1") | |
await asyncio.sleep(1) |
This file contains 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 timeit | |
from enum import Enum | |
class RestartReasonEnum(Enum): | |
WS_NOT_OPEN = "WS NOT OPEN" | |
NO_MESSAGES = "NO MESSAGES FOR > 15 SEC" | |
LISTEN_TASK_DONE = "LISTEN TASK DONE" | |
COUNT_TOO_HIGH = "COUNT TOO HIGH" |