In the second example requestSomeData
is declared inside a class that implements CoroutineScope
. See the docs for CoroutineScope
, which contains full-blown example.
In the second example requestSomeData
is declared inside a class that implements CoroutineScope
. See the docs for CoroutineScope
, which contains full-blown example.