Haha you’re right - the internal implementation doesn’t matter too much, the important thing to remember is that the withContext() scope will behave like any other lambda and you can mutate variables from the outer scope if you want. Just keep in mind that doing so concurrently may cause unexpected behaviors.
3 Likes