Luis Munoz
03/02/2020, 4:07 PMstreetsofboston
03/02/2020, 4:10 PMsuspend fun
when the return (value) of the function takes a while. The function suspends for a while and after a while it returns (a value). And you can call suspend fun
only from a Coroutine or other suspend funs.
Use a CoroutineScope extension function to kick off something asynchronously and the function should return immediately (the CoroutineScope extension function should never suspend)Luis Munoz
03/02/2020, 5:09 PMstreetsofboston
03/02/2020, 5:11 PM