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

Method sleep

src/textual/_sleep.py:30–34  ·  view source on GitHub ↗
(self, sleep_time: float)

Source from the content-addressed store, hash-verified

28 self._loop.call_soon_threadsafe(self.future.set_result, None)
29
30 async def sleep(self, sleep_time: float) -> None:
31 future = self.future = self._loop.create_future()
32 self._sleep_time = sleep_time
33 self._event.set()
34 await future
35
36
37async def check_sleeps() -> None:

Callers 15

pauseMethod · 0.80
time_sleep_coroFunction · 0.80
_press_keysMethod · 0.80
run_testMethod · 0.80
writeMethod · 0.80
get_starsMethod · 0.80
_count_app_nodesFunction · 0.80
quit_afterFunction · 0.80
test_multiple_tasksFunction · 0.80
on_mountMethod · 0.80

Calls 1

setMethod · 0.45

Tested by 11

_count_app_nodesFunction · 0.64
quit_afterFunction · 0.64
test_multiple_tasksFunction · 0.64
on_mountMethod · 0.64
workMethod · 0.64
run_errorFunction · 0.64
test_run_cancelFunction · 0.64
async_workMethod · 0.64
async_thread_workMethod · 0.64
on_mountMethod · 0.64