Skip to content

Commit

Permalink
docs: clarify behavior of sentry_flush + sentry_close (#883)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
  • Loading branch information
sapphonie and supervacuus authored Sep 13, 2023
1 parent d9e9019 commit b2c2ee0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Unreleased

**Thank you**:

Features, fixes and improvements in this release have been contributed by:

- [@sapphonie](https://github.com/sapphonie)

## 0.6.5

**Fixes**:
Expand Down
12 changes: 12 additions & 0 deletions include/sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,25 @@ SENTRY_API int sentry_init(sentry_options_t *options);
* The `timeout` parameter is in milliseconds.
*
* Returns 0 on success, or a non-zero return value in case the timeout is hit.
*
* Note that this function will block the thread it was called from until the
* sentry background worker has finished its work or it timed out, whichever
* comes first.
*/
SENTRY_API int sentry_flush(uint64_t timeout);

/**
* Shuts down the sentry client and forces transports to flush out.
*
* Returns 0 on success.
*
* Note that this does not uninstall any crash handler installed by our
* backends, which will still process crashes after `sentry_close()`, except
* when using `crashpad` on Linux or the `inproc` backend.
*
* Further note that this function will block the thread it was called from
* until the sentry background worker has finished its work or it timed out,
* whichever comes first.
*/
SENTRY_API int sentry_close(void);

Expand Down

0 comments on commit b2c2ee0

Please sign in to comment.