To the best of my knowledge, I am doing the same thing using 2 different approaches: When I run this code, i get 2 different outcomes: What is going on here? I have a feeling it has to do with asynchronicity, but not quite sure how… Can somebody give me a hint as to how/why these 2 behaviors are different?