Initializes the disk cache on an io thread after 3 seconds.

This commit is contained in:
Vitor Pamplona
2026-02-24 17:21:37 -05:00
parent 4c81ef19df
commit 4e39df2707
@@ -73,6 +73,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.io.File
@@ -293,6 +294,13 @@ class AppModules(
// registers to receive events
pokeyReceiver.register(appContext)
// initializes diskcache on an IO thread.
applicationIOScope.launch {
// Sets Coil - Tor - OkHttp link
delay(3000)
videoCache
}
}
fun terminate(appContext: Context) {