This code would not block `aRegularFunction` from ...
# coroutines
r
This code would not block
aRegularFunction
from being run
Copy code
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)