MCPcopy
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
44def 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
55class ASGIResponseStream(AsyncByteStream):

Callers 1

handle_async_requestMethod · 0.85

Calls 1

is_running_trioFunction · 0.85

Tested by

no test coverage detected