Currently am using runBlocking but am not sure if ...
# android
b
Currently am using runBlocking but am not sure if that's the right use case
e
it depends, but most likely that is not the right use case
b
So let's say I am making a network request and I need to access the token to authenticate it. But the token is stored in DataStore; the new SharedPreferences
Don't you think runBlocking is required here since we want to access the token before making the network request?
e
it would make more sense for your network request to be run in a
suspend
function