Skip to content

Cannot interrupt top-level coroutine #881

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.

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