jvmMain.scheduling.RaptorJobGroup.kt Maven / Gradle / Ivy
The newest version!
package io.fluidsonic.raptor
import kotlinx.serialization.*
public interface RaptorJobGroup {
public val id: String
public val serializer: KSerializer
}
@RaptorDsl
public inline fun RaptorJobsDsl.group(id: String): RaptorJobGroup =
group(id = id, serializer = serializer())
@RaptorDsl
@Suppress("UnusedReceiverParameter")
public fun RaptorJobsDsl.group(id: String, serializer: KSerializer): RaptorJobGroup =
RaptorJobGroupImpl(id = id, serializer = serializer)