Skip to content

Cannot interrupt top-level coroutine #881

Open
@davidbrochart

Description

@davidbrochart

It looks like interrupting a cell execution which consists of awaiting a top-level coroutine, e.g.:

import asyncio

async def main():
    await asyncio.sleep(5)

await main()

doesn't take effect immediately, but once the coroutine completes execution.

See #880 for a test that reveals this bug.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions