Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot interrupt top-level coroutine #881

Open
davidbrochart opened this issue Mar 14, 2022 · 1 comment
Open

Cannot interrupt top-level coroutine #881

davidbrochart opened this issue Mar 14, 2022 · 1 comment
Labels

Comments

@davidbrochart
Copy link
Collaborator

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.

@davidbrochart
Copy link
Collaborator Author

This also happens with:

import asyncio

await asyncio.sleep(5)

Which means that this test is incomplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant