Skip to content

code is never stopped #268

@NeedNot

Description

@NeedNot

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions