jvmMain.scheduling.RaptorJobExecutor.kt Maven / Gradle / Ivy
The newest version!
package io.fluidsonic.raptor
public interface RaptorJobExecutor {
public val group: RaptorJobGroup
public val execute: suspend RaptorContext.(data: Data) -> Unit
}
public fun RaptorJobGroup.executor(
execute: suspend RaptorContext.(data: Data) -> Unit,
): RaptorJobExecutor =
RaptorJobExecutorImpl(group = this, execute = execute)