MCPcopy Create free account
hub / github.com/sourcegraph/conc / Recovered

Method Recovered

panics/panics.go:44–46  ·  view source on GitHub ↗

Recovered returns the value of the first panic caught by Try, or nil if no calls to Try panicked.

()

Source from the content-addressed store, hash-verified

42// Recovered returns the value of the first panic caught by Try, or nil if
43// no calls to Try panicked.
44func (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

Callers 8

TryFunction · 0.95
ExampleCatcherFunction · 0.95
ExampleCatcher_callersFunction · 0.95
ExampleCatcher_errorFunction · 0.95
TestCatcherFunction · 0.95
TestRecoveredAsErrorFunction · 0.95
RepanicMethod · 0.95
WaitAndRecoverMethod · 0.80

Calls

no outgoing calls

Tested by 5

ExampleCatcherFunction · 0.76
ExampleCatcher_callersFunction · 0.76
ExampleCatcher_errorFunction · 0.76
TestCatcherFunction · 0.76
TestRecoveredAsErrorFunction · 0.76