I'm having some doubts on my understanding of the behaviour of a go subroutine in a for loop.
From what I understand, when we have a for loop:
for key := range Map {
go subroutine(Map[key])
}
Where Map has, let's say 3 (key,Value) pairs.
So my understanding is that the subroutine() function will run concurrently using all the Map[Key] values ie subroutine(Map[key1]),subroutine(Map[key2]) and subroutine(Map[key3]) will all run concurrently ?
Is my understanding of concurrent subroutines in a for loop correct?
Thanks!