Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/httpx
/ create_event
Function
create_event
httpx/_transports/asgi.py:44–52 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
43
44
def
create_event() -> Event:
45
if
is_running_trio():
46
import
trio
47
48
return
trio.Event()
49
50
import
asyncio
51
52
return
asyncio.Event()
53
54
55
class
ASGIResponseStream(AsyncByteStream):
Callers
1
handle_async_request
Method · 0.85
Calls
1
is_running_trio
Function · 0.85
Tested by
no test coverage detected