jvmMain.scheduling.RaptorJobScheduler.kt Maven / Gradle / Ivy
package io.fluidsonic.raptor
import io.fluidsonic.raptor.di.*
public interface RaptorJobScheduler {
public suspend fun queryStatus(id: String, group: RaptorJobGroup<*>): RaptorJobStatus?
public suspend fun remove(id: String, group: RaptorJobGroup<*>)
public suspend fun schedule(id: String, group: RaptorJobGroup, data: Data, timing: RaptorJobTiming)
}
public val RaptorScope.jobScheduler: RaptorJobScheduler
get() = di.get()