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

Method __del__

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

Source from the content-addressed store, hash-verified

308 self._fork_invalidated = True
309
310 def __del__(self) -> None:
311 # Safety net when close() was never called: shut down the executor we own so its worker thread does not
312 # outlive the lock. shutdown(wait=False) never blocks.
313 if os.getpid() == getattr(self, "_creator_pid", None) and getattr(self, "_owns_executor", False):
314 self._executor.shutdown(wait=False)
315
316
317class AsyncAcquireReadWriteReturnProxy:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected