ross_a
07/28/2018, 2:12 PMaRegularFunction from being run
suspend fun aSuspendingFunctionThatGetsAValueFromANetworkAPI(): Deferred<Int> = async {
delay(10)
return@async 1
}
aRegularFunction would be called right away and not block until it tries to get the result of foo (via foo.await()) (but then it too would need to be suspendable)