MCPcopy
hub / github.com/Textualize/textual / thread_work

Method thread_work

tests/workers/test_work_decorator.py:31–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29
30 @work(thread=True)
31 def thread_work(self) -> str:
32 sleep(0.1)
33 return "foo"
34
35 def launch(self, worker) -> None:
36 self.worker = worker()

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.90

Tested by

no test coverage detected