MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / worker

Method worker

mobile_codex_control.py:1374–1381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1372 self.status_text.set(pending_message)
1373
1374 def worker() -> None:
1375 try:
1376 message = task()
1377 self.root.after(0, lambda: self.status_text.set(message))
1378 except Exception as exc: # noqa: BLE001
1379 self.root.after(0, lambda: self.status_text.set(f"操作失败:{exc}"))
1380 finally:
1381 self.root.after(0, self._mark_idle)
1382
1383 threading.Thread(target=worker, daemon=True).start()
1384

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected