All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kernl.data.source.builder.DataSourceBuilder.kt Maven / Gradle / Ivy

Go to download

Kernl: A Kotlin Symbol Processing (KSP) library for automatic repository generation.

There is a newer version: 0.0.1-beta6
Show newest version
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
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy