func()

in unison/taskgroup.go [124:134]


func (t *TaskGroup) init(parent Canceler) {
	t.initOnce.Do(func() {
		t.closer, t.cancel = context.WithCancel(ctxtool.FromCanceller(parent))
		if t.OnQuit == nil {
			t.OnQuit = StopOnError
		}
		if t.MaxErrors == 0 {
			t.MaxErrors = 10
		}
	})
}