From d23e7197967fdcff7f68d847cd75383b8dd53ebd Mon Sep 17 00:00:00 2001 From: danielle9897 Date: Mon, 2 Sep 2024 12:43:23 +0300 Subject: [PATCH] RDBC-870 Add explanation of session & store dispose to the readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d9da52d0..a37897a1 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,13 @@ session }); ``` +5. When you have finished using the session and the document store objects, +make sure to dispose of them properly to free up resources: +```javascript +session.dispose(); +store.dispose(); +``` + ## Supported asynchronous call types Most methods on the session object are asynchronous and return a Promise.