15 lines
233 B
Go
15 lines
233 B
Go
package hw05_parallel_execution //nolint:golint,stylecheck
|
|
|
|
import (
|
|
"errors"
|
|
"sync"
|
|
)
|
|
|
|
var ErrErrorsLimitExceeded = errors.New("errors limit exceeded")
|
|
|
|
type Errors struct {
|
|
count int
|
|
mx sync.RWMutex
|
|
}
|
|
type Task func() error
|