xyz.cssxsh.pixiv.SimplePixivClient.kt Maven / Gradle / Ivy
package xyz.cssxsh.pixiv
import io.ktor.utils.io.errors.*
import kotlinx.coroutines.*
import kotlin.coroutines.*
public open class SimplePixivClient(
parentCoroutineContext: CoroutineContext = EmptyCoroutineContext,
coroutineName: String = "SimplePixivClient",
override val config: PixivConfig,
) : PixivAuthClient(), PixivWebClient {
override val coroutineContext: CoroutineContext by lazy {
parentCoroutineContext + CoroutineName(coroutineName) + SupervisorJob()
}
override val ignore: suspend (Throwable) -> Boolean = { it is IOException }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy