We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c59e8 commit da2d27fCopy full SHA for da2d27f
ipykernel/kernelbase.py
@@ -583,13 +583,13 @@ def pre_handler_hook(self):
583
def post_handler_hook(self):
584
"""Hook to execute after calling message handler"""
585
586
- def start_soon(self, func, *args):
+ def start_soon(self, func, *args, name: str | None = None):
587
"Run a coroutine in the main thread taskgroup."
588
try:
589
if self._portal._event_loop_thread_id == threading.get_ident():
590
- self._tg_main.start_soon(func, *args)
+ self._tg_main.start_soon(func, *args, name=name)
591
else:
592
- self._portal.start_task_soon(func, *args)
+ self._portal.start_task_soon(func, *args, name=name)
593
except Exception:
594
self.log.exception("portal call failed")
595
raise
0 commit comments