Recovered returns the value of the first panic caught by Try, or nil if no calls to Try panicked.
()
| 42 | // Recovered returns the value of the first panic caught by Try, or nil if |
| 43 | // no calls to Try panicked. |
| 44 | func (p *Catcher) Recovered() *Recovered { |
| 45 | return p.recovered.Load() |
| 46 | } |
| 47 | |
| 48 | // NewRecovered creates a panics.Recovered from a panic value and a collected |
| 49 | // stacktrace. The skip parameter allows the caller to skip stack frames when |
no outgoing calls