jvmMain.api.RaptorLifecycle.kt Maven / Gradle / Ivy
package io.fluidsonic.raptor.lifecycle
import kotlinx.coroutines.*
public interface RaptorLifecycle : CoroutineScope {
public val state: State
public suspend fun startIn(scope: CoroutineScope)
public suspend fun stop()
public enum class State {
started,
starting,
stopped,
stopping
}
}