MCPcopy Create free account
hub / github.com/tox-dev/filelock / __del__

Method __del__

src/filelock/_async_read_write.py:206–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self._executor.shutdown(wait=False)
205
206 def __del__(self) -> None:
207 # Safety net: if close() was never called, still shut down the executor we created so its worker thread does
208 # not outlive the lock. A caller-supplied executor is left untouched. shutdown(wait=False) never blocks.
209 if getattr(self, "_owns_executor", False):
210 self._executor.shutdown(wait=False)
211
212
213__all__ = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected