-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
in the end i want to run math but end it if it takes longer than x to complete but even this doesn't even stop
async with timeout(5):
await run_formula()and
async def run_formula():
for i in range(100):
print(i)
time.sleep(1)it should stop at 0, 1, 2, 3, 4 but instead it counts all the way to 100
Metadata
Metadata
Assignees
Labels
No labels