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

Class Event

src/py/reactpy/tests/tooling/aio.py:9–16  ·  view source on GitHub ↗

An event with a ``wait_for`` method.

Source from the content-addressed store, hash-verified

7
8
9class Event(_Event):
10 """An event with a ``wait_for`` method."""
11
12 async def wait(self, timeout: float | None = None):
13 return await wait_for(
14 super().wait(),
15 timeout=timeout or REACTPY_TESTING_DEFAULT_TIMEOUT.current,
16 )

Calls

no outgoing calls