mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Run in Dispatchers.IO
This commit is contained in:
@@ -29,6 +29,8 @@ import com.apollographql.apollo3.network.ws.GraphQLWsProtocol
|
|||||||
import de.jensklingenberg.ktorfit.Ktorfit
|
import de.jensklingenberg.ktorfit.Ktorfit
|
||||||
import io.ktor.http.URLBuilder
|
import io.ktor.http.URLBuilder
|
||||||
import io.ktor.http.appendPathSegments
|
import io.ktor.http.appendPathSegments
|
||||||
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.IO
|
||||||
import me.tatarka.inject.annotations.Provides
|
import me.tatarka.inject.annotations.Provides
|
||||||
|
|
||||||
interface DataComponent {
|
interface DataComponent {
|
||||||
@@ -56,6 +58,7 @@ interface DataComponent {
|
|||||||
)
|
)
|
||||||
.ktorClient(http)
|
.ktorClient(http)
|
||||||
.wsProtocol(GraphQLWsProtocol.Factory())
|
.wsProtocol(GraphQLWsProtocol.Factory())
|
||||||
|
.dispatcher(Dispatchers.IO)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
|||||||
Reference in New Issue
Block a user