mycomponent := NewMyComponentA(logger) for i := 1; i < 5; i++ { mycomponent.MyMethod(context.Background()) }