Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 29, 2022
1 parent efb08ac commit 2035675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2035675

Please sign in to comment.