2021-10-21 13:05:02 -07:00
|
|
|
package cash.z.ecc.android.sdk.internal
|
|
|
|
|
|
|
|
import kotlinx.coroutines.asCoroutineDispatcher
|
|
|
|
import java.util.concurrent.Executors
|
|
|
|
|
|
|
|
internal object SdkDispatchers {
|
|
|
|
/*
|
|
|
|
* Based on internal discussion, keep the SDK internals confined to a single IO thread.
|
|
|
|
*
|
|
|
|
* We don't expect things to break, but we don't have the WAL enabled for SQLite so this
|
|
|
|
* is a simple solution.
|
|
|
|
*/
|
|
|
|
val IO = Executors.newSingleThreadExecutor().asCoroutineDispatcher()
|
2021-11-18 04:10:30 -08:00
|
|
|
}
|