MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / connection_context

Function connection_context

py/private/cdp.py:109–115  ·  view source on GitHub ↗

Context manager installs ``connection`` as the session context for the current Trio task.

(connection)

Source from the content-addressed store, hash-verified

107
108@contextmanager
109def connection_context(connection):
110 """Context manager installs ``connection`` as the session context for the current Trio task."""
111 token = _connection_context.set(connection)
112 try:
113 yield
114 finally:
115 _connection_context.reset(token)
116
117
118@contextmanager

Callers 1

open_cdpFunction · 0.85

Calls 2

resetMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected