Andrey B.
03/17/2021, 4:16 PMviewModelScope.launch(<http://Dispatchers.IO|Dispatchers.IO>) { someFunction() }
....
fun someFunction(){}
It's compiling!!! But whyyyy? Shouldn't someFunction() be suspendable??Zach Klippenstein (he/him) [MOD]
03/17/2021, 4:17 PMAndrey B.
03/17/2021, 4:18 PMalbertosh
03/17/2021, 4:18 PMval i = 0
as it’s synchronousalbertosh
03/17/2021, 4:19 PMsuspend
Zach Klippenstein (he/him) [MOD]
03/17/2021, 4:19 PMAndrey B.
03/17/2021, 4:20 PMZach Klippenstein (he/him) [MOD]
03/17/2021, 4:21 PMAndrey B.
03/17/2021, 4:21 PMAndrey B.
03/17/2021, 4:22 PMAndrey B.
03/17/2021, 4:29 PMZach Klippenstein (he/him) [MOD]
03/17/2021, 4:33 PMAndrey B.
03/17/2021, 4:33 PMgildor
03/18/2021, 1:26 AMErik
03/18/2021, 3:22 PM