MCPcopy Create free account
hub / github.com/libgit2/pygit2 / close

Method close

pygit2/blob.py:87–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 return 0
86
87 def close(self) -> None:
88 try:
89 self._ready.wait()
90 self._writer_closed.wait()
91 while self._queue is not None and not self._queue.empty():
92 self._queue.get()
93 self._thread.join()
94 except KeyboardInterrupt:
95 pass
96 self._queue = None
97
98
99class BlobIO(io.BufferedReader, AbstractContextManager):

Callers 3

__exit__Method · 0.95
__exit__Method · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected