Skip to content

Commit

Permalink
doc: Removed old APIs from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 19, 2018
1 parent 93f3a6e commit 859488f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ For instance to report a ``failure::Error`` this code can be used:
}
};

For this particular case a shortcut is also provided:

.. sourcecode:: rust

use sentry::integrations::failure::tap_error;

let result = tap_error(a_function_that_might_fail())?;

Similarly the functions ``capture_fail`` and ``tap_fail`` can be used to
work with `Fail` trait objects instead.

Catching Panics
---------------
Expand Down Expand Up @@ -132,19 +122,6 @@ implementation (it will wait up to 2 seconds for this):
let _guard = sentry::init(...);
}

Alternatively you can call ``sentry::drain_events`` which takes an
explicit timeout:

.. sourcecode:: rust

use std::time::Duration;

fn main() {
sentry::init(...);
// ...
sentry::drain_events(Some(Duration::from_secs(2)));
}

More Information
----------------

Expand Down

0 comments on commit 859488f

Please sign in to comment.