rrva
05/05/2022, 3:42 PMsuspend fun refreshToken(token: Token)
if the cache is cold, I want to prevent to coroutines concurrently refreshing the value
I have tried some solutions
Semaphore (the coroutine aware one)
Actor-like impl with channels but without actor lib.
Are there any other simpler/more obvious solutions?rrva
05/05/2022, 3:46 PMAndrey Tabakov
05/05/2022, 7:17 PMrrva
05/05/2022, 7:21 PMAndrey Tabakov
05/05/2022, 7:28 PM