Right now, Kotlin coroutines are implemented without help of JVM. It does not use something like green (virtual) threads. You can read about implementation of coroutines here – https://github.com/…
Advertisement
Tag: kotlin-coroutines
Caffeine: Use stale values when AsyncLoader fails to refresh
I want to configure my Caffeine cache to return stale results when loader fails to refresh the cache. The following Kotlin code demonstrates the case: @Test fun `completeble future`() = …
Using coroutines in a right way
I am implementing the coroutine for first time. I am following MVP pattern for a simple login app. Here is my code flow – The login button clicked will follow this direction – LoginFragment -> LoginPresenter -> Repository -> APIRepository -> RetrofitInterface The login response will follow this direction – RetrofitInterface -> APIRepository -> Repository -> LoginPresenter -> LoginFragment Here
Advertisement