MCPcopy
hub / github.com/encode/httpx / sleep

Function sleep

tests/concurrency.py:11–15  ·  view source on GitHub ↗
(seconds: float)

Source from the content-addressed store, hash-verified

9
10
11async def sleep(seconds: float) -> None:
12 if sniffio.current_async_library() == "trio":
13 await trio.sleep(seconds) # pragma: no cover
14 else:
15 await asyncio.sleep(seconds)

Callers 2

slow_responseFunction · 0.90
restartMethod · 0.90

Calls

no outgoing calls

Tested by 2

slow_responseFunction · 0.72
restartMethod · 0.72