errgroup/singleflight
Eric Wohltman 22ba2078e1 singleflight: add panicError.Unwrap method
Currently when singleflight recovers from a panic, it wraps it with the private
error type panicError. This change adds an `Unwrap` method to panicError to
allow wrapped errors to be returned.

Updates golang/go#62511

Change-Id: Ia510ad7d5881207ef71f9eb89c1766835af19b6b
Reviewed-on: https://go-review.googlesource.com/c/sync/+/526171
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-26 16:46:49 +00:00
..
singleflight.go singleflight: add panicError.Unwrap method 2023-09-26 16:46:49 +00:00
singleflight_test.go singleflight: add panicError.Unwrap method 2023-09-26 16:46:49 +00:00