https://kotlinlang.org logo
d

dave08

10/25/2017, 12:17 PM
Oh! Because context given relates to inside the coroutine, and if there would be a context the yield would potentially end up being done in another thread, which would already make it async... so this is a protection to keep all the yields synchronous right? But could the whole sequence, including all yields be done in the same other thread and the result in the UI thread.. I'd have to use produce for that?