File tree 1 file changed +0
-23
lines changed
1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -92,16 +92,6 @@ For instance to report a ``failure::Error`` this code can be used:
92
92
}
93
93
};
94
94
95
- For this particular case a shortcut is also provided:
96
-
97
- .. sourcecode :: rust
98
-
99
- use sentry::integrations::failure: :tap_error;
100
-
101
- let result = tap_error(a_function_that_might_fail())?;
102
-
103
- Similarly the functions ``capture_fail `` and ``tap_fail `` can be used to
104
- work with `Fail ` trait objects instead.
105
95
106
96
Catching Panics
107
97
---------------
@@ -132,19 +122,6 @@ implementation (it will wait up to 2 seconds for this):
132
122
let _guard = sentry::init(...);
133
123
}
134
124
135
- Alternatively you can call ``sentry::drain_events `` which takes an
136
- explicit timeout:
137
-
138
- .. sourcecode :: rust
139
-
140
- use std::time: :Duration;
141
-
142
- fn main() {
143
- sentry::init(...);
144
- // ...
145
- sentry::drain_events(Some(Duration::from_secs(2)));
146
- }
147
-
148
125
More Information
149
126
----------------
150
127
You can’t perform that action at this time.
0 commit comments