Skip to content

Commit 132f4ff

Browse files
Another Python 3.6 bugfix.
1 parent f9b6d7d commit 132f4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/prompt_toolkit/buffer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ async def refresh_while_loading() -> None:
17541754
await asyncio.sleep(0.3)
17551755
await refresh_needed.wait()
17561756

1757-
refresh_task = asyncio.create_task(refresh_while_loading())
1757+
refresh_task = asyncio.ensure_future(refresh_while_loading())
17581758
try:
17591759
# Load.
17601760
async with aclosing(

0 commit comments

Comments
 (0)