MCPcopy Index your code
hub / github.com/microsoft/playwright-python / continuation

Method continuation

playwright/_impl/_frame.py:263–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 )
262
263 async def continuation() -> Optional[Response]:
264 event = await waiter.result()
265 if "error" in event:
266 raise Error(event["error"])
267 if waitUntil not in self._load_states:
268 t = deadline - monotonic_time()
269 if t > 0:
270 await self._wait_for_load_state_impl(state=waitUntil, timeout=t)
271 if "newDocument" in event and "request" in event["newDocument"]:
272 request = from_channel(event["newDocument"]["request"])
273 return await request.response()
274 return None
275
276 return EventContextManagerImpl(asyncio.create_task(continuation()))
277

Callers

nothing calls this directly

Calls 6

ErrorClass · 0.90
monotonic_timeFunction · 0.90
from_channelFunction · 0.90
resultMethod · 0.80
responseMethod · 0.45

Tested by

no test coverage detected