Chore: test cases

This commit is contained in:
yaling888
2022-05-25 01:36:27 +08:00
15 changed files with 246 additions and 1597 deletions

View File

@ -25,7 +25,6 @@ type Result[T any] struct {
}
// Do single.Do likes sync.singleFlight
//lint:ignore ST1008 it likes sync.singleFlight
func (s *Single[T]) Do(fn func() (T, error)) (v T, err error, shared bool) {
s.mux.Lock()
now := time.Now()