ipython / ipython/ipykernel

Cannot interrupt top-level coroutine

Aberta
#881 1 comentário 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
Python
Estrelas
734
Forks
412
Merge médio
1d 5h
PRs com merge (30d)
8

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.