Skip to content

Commit 4f6e3cb

Browse files
authored
Document that concurrently closing drivers is a bad idea. (#1270)
1 parent 986e9a9 commit 4f6e3cb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/core/src/driver.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,12 @@ class Driver {
824824
/**
825825
* Close all open sessions and other associated resources. You should
826826
* make sure to use this when you are done with this driver instance.
827+
*
828+
* This will interrupt any running connections.
829+
* Make sure you are done using the driver object and any resources
830+
* spawned from it (such as sessions or transactions) while calling
831+
* this method. Failing to do so will result in unspecified behavior.
832+
*
827833
* @public
828834
* @return {Promise<void>} promise resolved when the driver is closed.
829835
*/

packages/neo4j-driver-deno/lib/core/driver.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)