for assorted things

event loop

+6
+6
kill-processes
··· 23 import marvin 24 import hashlib 25 import json 26 from pathlib import Path 27 from cachetools import TTLCache 28 from textual.app import App, ComposeResult ··· 349 350 351 if __name__ == "__main__": 352 ProcessTUI().run()
··· 23 import marvin 24 import hashlib 25 import json 26 + import asyncio 27 from pathlib import Path 28 from cachetools import TTLCache 29 from textual.app import App, ComposeResult ··· 350 351 352 if __name__ == "__main__": 353 + try: 354 + loop = asyncio.get_event_loop() 355 + except RuntimeError: 356 + loop = asyncio.new_event_loop() 357 + asyncio.set_event_loop(loop) 358 ProcessTUI().run()