Skip to content

Commit 2694fdc

Browse files
authored
API docs: Driver.close is not concurrency-safe (#1148)
1 parent 6cdfc12 commit 2694fdc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

neo4j/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ def pipeline(self, **config):
314314

315315
def close(self):
316316
""" Shut down, closing any open connections in the pool.
317+
318+
.. warning::
319+
320+
While the driver object is concurrency-safe, ``close`` is *not*.
321+
Make sure you are not using the driver object or any resources
322+
spawned from it (such as sessions or transactions) while calling
323+
this method. Failing to do so results in unspecified behavior.
317324
"""
318325
self._pool.close()
319326

0 commit comments

Comments
 (0)