Add attaches tasks to the Runner. A task is a function that takes an int ID.
(tasks ...func(int))
| 45 | // Add attaches tasks to the Runner. A task is a function that |
| 46 | // takes an int ID. |
| 47 | func (r *Runner) Add(tasks ...func(int)) { |
| 48 | r.tasks = append(r.tasks, tasks...) |
| 49 | } |
| 50 | |
| 51 | // Start runs all tasks and monitors channel events. |
| 52 | func (r *Runner) Start() error { |
no outgoing calls
no test coverage detected