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

Function sleep

src/textual/_time.py:22–28  ·  view source on GitHub ↗

Sleep for a given number of seconds. Args: secs: Number of seconds to sleep for.

(secs: float)

Source from the content-addressed store, hash-verified

20 from textual._win_sleep import sleep as win_sleep
21
22 async def sleep(secs: float) -> None:
23 """Sleep for a given number of seconds.
24
25 Args:
26 secs: Number of seconds to sleep for.
27 """
28 await asyncio.create_task(win_sleep(secs))
29
30else:
31

Callers 10

runMethod · 0.90
profile_sleepFunction · 0.90
_runMethod · 0.90
test_time_outFunction · 0.90
test_timeoutFunction · 0.90
thread_workMethod · 0.90
wait_for_idleFunction · 0.70
shuffleMethod · 0.50
innocent_workerMethod · 0.50
load_dataMethod · 0.50

Calls

no outgoing calls

Tested by 4

test_time_outFunction · 0.72
test_timeoutFunction · 0.72
thread_workMethod · 0.72
innocent_workerMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…