File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111try :
1212 from jupyter_server .extension .application import ExtensionApp
1313 from jupyter_server .transutils import trans
14- from jupyter_server .utils import run_sync_in_loop
14+ from jupyter_server .utils import ensure_async
1515except ModuleNotFoundError :
1616 raise ModuleNotFoundError ("Jupyter Server must be installed to use this extension." )
1717
@@ -101,7 +101,7 @@ async def cleanup_terminals(self):
101101 "Shutting down %d terminal" , "Shutting down %d terminals" , n_terminals
102102 )
103103 self .log .info (terminal_msg % n_terminals )
104- await run_sync_in_loop (terminal_manager .terminate_all ())
104+ await ensure_async (terminal_manager .terminate_all ())
105105
106106 async def stop_extension (self ):
107107 await self .cleanup_terminals ()
You can’t perform that action at this time.
0 commit comments