I am creating a personal playlist in my app using songs that I am pulling from the Spotify SDK. Spotify songs have a uri which makes it so you can only play the tracks with the Spotify player which takes a single string uri and plays it, but I have an entire array of track URI's. To solve this I created a for..in loop to play each individual song, but what happens is it iterates through the entire array and only plays the last track uri in the array.
My question is: Is there a way to have the for..in loop wait for each item to finish playing before going through the rest of the array?

