Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docstring
  • Loading branch information
Archmonger committed Mar 8, 2024
commit e1473cae266f6f5cb4e7deca2a35609b676f0bda
4 changes: 3 additions & 1 deletion src/py/reactpy/reactpy/core/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ async def _serial_render(self) -> LayoutUpdateMessage: # nocov
return await self._create_layout_update(model_state)

async def _parallel_render(self) -> LayoutUpdateMessage:
"""Await the next available render within an asyncio task group."""
"""Await to fetch the first completed render within our asyncio task group.
We use the `asyncio.tasks.wait` API in order to return the first completed task.
"""
await self._render_tasks_ready.acquire()
done, _ = await wait(self._render_tasks, return_when=FIRST_COMPLETED)
update_task: Task[LayoutUpdateMessage] = done.pop()
Expand Down