MCPcopy Index your code
hub / github.com/microsoft/Webwright / run_async

Function run_async

src/webwright/utils/runtime.py:9–14  ·  view source on GitHub ↗
(coro)

Source from the content-addressed store, hash-verified

7
8
9def run_async(coro) -> T:
10 try:
11 asyncio.get_running_loop()
12 except RuntimeError:
13 return asyncio.run(coro)
14 raise RuntimeError("Webwright does not support running inside an active event loop.")

Callers 2

__call__Method · 0.90
queryMethod · 0.90

Calls 1

runMethod · 0.45

Tested by

no test coverage detected