kernl.data.source.builder.DataSourceBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kernl.Runtime Show documentation
Show all versions of Kernl.Runtime Show documentation
Kernl: A Kotlin Symbol Processing (KSP) library for automatic repository generation.
package io.github.mattshoe.shoebox.kernl.data.source.builder
import io.github.mattshoe.shoebox.kernl.data.source.DataSource
import kotlinx.coroutines.CoroutineDispatcher
import kotlin.reflect.KClass
abstract class DataSourceBuilder(
protected val clazz: KClass
) {
protected var dispatcher: CoroutineDispatcher? = null
fun dispatcher(dispatcher: CoroutineDispatcher): DataSourceBuilder {
this.dispatcher = dispatcher
return this
}
abstract fun build(): DataSource
}