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

Method _release

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

Source from the content-addressed store, hash-verified

21 self._lock.acquire()
22
23 def _release(self) -> None:
24 if self._lock is not None:
25 self._lock.release()
26
27 def add(self, event_type: str, handler: EventHandler, *, once: bool = False) -> None:
28 self._acquire()

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