unpack_string/hw05_parallel_execution/run.go

16 lines
315 B
Go
Raw Normal View History

2023-10-30 15:21:12 +03:00
package hw05parallelexecution
import (
"errors"
)
var ErrErrorsLimitExceeded = errors.New("errors limit exceeded")
type Task func() error
// Run starts tasks in n goroutines and stops its work when receiving m errors from tasks.
func Run(tasks []Task, n, m int) error {
// Place your code here.
return nil
}