No need to handle coroutines and it returns data fastly.
k
K Merle
10/10/2021, 8:13 PM
Your usecase might need something else then DataStore.
f
Francesc
10/10/2021, 10:59 PM
You can't. You could wrap the read call in a runBlocking call, but even then it's not guaranteed to be without delay because there is IO involved. The Legacy preferences wasn't without delay either, it was just that you didn't have an easy way to not block when calling the API.
👍 1
☝️ 1
a
AmrJyniat
10/11/2021, 7:00 AM
It's very wired, when you replace
SharedPrefrence
with
dataStore
to optimize the process but actually you miss very basic requirement like this!