MCPcopy
hub / github.com/pytest-dev/pytest-xdist / lock

Method lock

src/xdist/remote.py:101–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99
100 @contextlib.contextmanager
101 def lock(self) -> Generator[collections.deque[Item]]:
102 with self._lock:
103 try:
104 yield self._items
105 finally:
106 if self._items:
107 self._has_items_event.set()
108 else:
109 self._has_items_event.clear()
110
111
112class WorkerInteractor:

Callers 4

getMethod · 0.95
putMethod · 0.95
replaceMethod · 0.95
stealMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected