Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
9
def
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
query
Method · 0.90
Calls
1
run
Method · 0.45
Tested by
no test coverage detected