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

Method value

playwright/_impl/_sync_base.py:53–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52 @property
53 def value(self) -> T:
54 while not self._future.done():
55 self._sync_base._dispatcher_fiber.switch()
56 asyncio._set_running_loop(self._sync_base._loop)
57 exception = self._future.exception()
58 if exception:
59 raise exception
60 return cast(T, mapping.from_maybe_impl(self._future.result()))
61
62 def _cancel(self) -> None:
63 self._future.cancel()

Callers

nothing calls this directly

Calls 2

from_maybe_implMethod · 0.80
resultMethod · 0.80

Tested by

no test coverage detected