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

Method async_thread_work

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

Source from the content-addressed store, hash-verified

24
25 @work(thread=True)
26 async def async_thread_work(self) -> str:
27 await asyncio.sleep(0.1)
28 return "foo"
29
30 @work(thread=True)
31 def thread_work(self) -> str:

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.80

Tested by

no test coverage detected