MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / apply

Function apply

seleniumbase/core/nest_asyncio.py:17–25  ·  view source on GitHub ↗
(loop=None, *, run_close_loop=False, error_on_mispatched=False)

Source from the content-addressed store, hash-verified

15
16
17def apply(loop=None, *, run_close_loop=False, error_on_mispatched=False):
18 global _run_close_loop
19 _patch_asyncio(error_on_mispatched=error_on_mispatched)
20 _patch_policy()
21 _patch_tornado()
22 loop = loop or _get_event_loop()
23 if loop is not None:
24 _patch_loop(loop)
25 _run_close_loop &= run_close_loop
26
27
28if sys.version_info < (3, 14, 0):

Callers

nothing calls this directly

Calls 5

_patch_asyncioFunction · 0.85
_patch_policyFunction · 0.85
_patch_tornadoFunction · 0.85
_get_event_loopFunction · 0.85
_patch_loopFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…