(task *Task)
| 63 | const defaultMaxRunningTasks = 3 |
| 64 | |
| 65 | func cloneTask(task *Task) *Task { |
| 66 | if task == nil { |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | cloned := *task |
| 71 | return &cloned |
| 72 | } |
| 73 | |
| 74 | func NewTaskManager(clientResolver ClientResolver, updateNotify func()) *TaskManager { |
| 75 | return NewTaskManagerWithMaxRunning(clientResolver, updateNotify, defaultMaxRunningTasks) |
no outgoing calls
no test coverage detected