Skip to content

Commit bdf3bc1

Browse files
committed
dispatch only accepts coroutines
1 parent 6ea9018 commit bdf3bc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipykernel/kernelbase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,8 @@ def _abort_queues(self):
985985
self.shell_stream.flush()
986986

987987
# Callback to signal that we are done aborting
988-
def stop_aborting():
988+
# dispatch functions _must_ be async
989+
async def stop_aborting():
989990
self.log.info("Finishing abort")
990991
self._aborting = False
991992

0 commit comments

Comments
 (0)