- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ToErrorCleanup (0.09 sec)
-
pkg/test/failer.go
done := make(chan struct{}) w := &errorWrapper{} go func() { defer close(done) f(w) }() <-done return w.ToErrorCleanup() } // ToErrorCleanup returns any errors encountered and executes any cleanup actions func (e *errorWrapper) ToErrorCleanup() error { e.mu.RLock() defer e.mu.RUnlock() if e.cleanup != nil { e.cleanup() } return e.failed }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jul 15 23:58:50 UTC 2023 - 3.5K bytes - Viewed (0)