Why Nostr? What is Njump?
2024-08-18 02:12:57
in reply to

Glyph on Nostr: like if this sort of code sounds familiar and painful: if self.process is None: ...

like if this sort of code sounds familiar and painful:

if self.process is None:
self.start()
if self.process.stopping:
self._restart_after_stop = True
self._run_after_restart = request
return
if self.queue is not None:
self.queue.append(request)
return
self.process.send_command(...)

then you could probably use Automat to make your life a lot easier
Author Public Key
npub1h5u94g9409m9c6yrckcwk9lg4c6sexyvvk23p0s7s3f42lhrs7zq75y2g4