MCPcopy
hub / github.com/openai/openai-python / _acquire

Method _acquire

src/openai/_event_handler.py:19–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self._lock: threading.Lock | None = threading.Lock() if use_lock else None
18
19 def _acquire(self) -> None:
20 if self._lock is not None:
21 self._lock.acquire()
22
23 def _release(self) -> None:
24 if self._lock is not None:

Callers 5

addMethod · 0.95
removeMethod · 0.95
get_handlersMethod · 0.95
has_handlersMethod · 0.95
merge_intoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected