MCPcopy Create free account
hub / github.com/microsoft/playwright-python / _await_predicate

Method _await_predicate

playwright/_impl/_waiter.py:143–150  ·  view source on GitHub ↗
(coro: Any)

Source from the content-addressed store, hash-verified

141 if inspect.iscoroutine(result):
142
143 async def _await_predicate(coro: Any) -> None:
144 try:
145 matched = await coro
146 except Exception as e:
147 self._reject(e)
148 return
149 if matched and not self._result.done():
150 on_match()
151
152 self._pending_tasks.append(self._loop.create_task(_await_predicate(result)))
153 return

Callers

nothing calls this directly

Calls 1

_rejectMethod · 0.95

Tested by

no test coverage detected