MCPcopy Index your code
hub / github.com/reactive-python/reactpy / _single_incoming_loop

Function _single_incoming_loop

src/py/reactpy/reactpy/core/serve.py:75–83  ·  view source on GitHub ↗
(
    task_group: TaskGroup,
    layout: LayoutType[LayoutUpdateMessage, LayoutEventMessage],
    recv: RecvCoroutine,
)

Source from the content-addressed store, hash-verified

73
74
75async def _single_incoming_loop(
76 task_group: TaskGroup,
77 layout: LayoutType[LayoutUpdateMessage, LayoutEventMessage],
78 recv: RecvCoroutine,
79) -> None:
80 while True:
81 # We need to fire and forget here so that we avoid waiting on the completion
82 # of this event handler before receiving and running the next one.
83 task_group.start_soon(layout.deliver, await recv())

Callers

nothing calls this directly

Calls 1

recvFunction · 0.50

Tested by

no test coverage detected