Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
async
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_response
Function · 0.90
restart
Method · 0.90
Calls
no outgoing calls
Tested by
2
slow_response
Function · 0.72
restart
Method · 0.72