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

Method close

src/filelock/_read_write.py:375–385  ·  view source on GitHub ↗

Release the lock (if held) and close the underlying SQLite connection. After calling this method, the lock instance is no longer usable.

(self)

Source from the content-addressed store, hash-verified

373 self.release()
374
375 def close(self) -> None:
376 """
377 Release the lock (if held) and close the underlying SQLite connection.
378
379 After calling this method, the lock instance is no longer usable.
380
381 """
382 self.release(force=True)
383 self._con.close()
384 with _all_connections_lock:
385 _all_connections.discard(self._con)

Calls 1

releaseMethod · 0.95