From 20356759d393ddb26b744a15b9027aa919e582e5 Mon Sep 17 00:00:00 2001 From: Seth Silesky Date: Thu, 29 Sep 2022 12:33:10 -0500 Subject: [PATCH] update README --- packages/node/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node/README.md b/packages/node/README.md index b49d90db1..4f9b04b8c 100644 --- a/packages/node/README.md +++ b/packages/node/README.md @@ -27,6 +27,8 @@ analytics.track('hello world', {}, { userId: "123456" }) * If a callback on an event call is included, this also waits for all callbacks to be called, and any of their subsequent promises to be resolved. ```ts await analytics.closeAndFlush() +// or +await analytics.closeAndFlush({ timeout: 5000 }) // automatically closes after 5000ms ``` ### Graceful Shutdown: Advanced Example ```ts