ipython / ipython/ipykernel

Cannot interrupt top-level coroutine

Offen
#881 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
734
Forks
412
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
8

Beschreibung

It looks like interrupting a cell execution which consists of awaiting a top-level coroutine, e.g.:
```python
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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.