Roman Elizarov
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.

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

No responses yet