I got a solution for my problem which is not working. I am using Future and collection but it finish very fast which is wrong because it is not runnung the function
myCollection.foreach(element => Future {
myFunction()
})
what is wrong with my future implementation ?