1 min readSep 13, 2018
The only difference is that withContext
lets you change the contex, too, so that you can change your context to Dispatchers.Default
(like in your example) if you need to. Otherwise, it is the same.
The only difference is that withContext
lets you change the contex, too, so that you can change your context to Dispatchers.Default
(like in your example) if you need to. Otherwise, it is the same.
Project Lead for the Kotlin Programming Language @JetBrains