org.mattshoe.shoebox.kernl.runtime.session.KernlResourceManager.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kernl.Runtime Show documentation
Show all versions of Kernl.Runtime Show documentation
Kernl: A Kotlin Symbol Processing (KSP) library for automatic repository generation.
The newest version!
package org.mattshoe.shoebox.kernl.runtime.session
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import java.util.*
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
interface KernlResourceManager {
fun startSession(
dispatcher: CoroutineDispatcher = Dispatchers.Default,
resourceMonitorInterval: Duration = 1.seconds
)
fun stopSession()
fun registerKernl(kernl: Any): KernlRegistration
fun resetTimeToLive(uuid: UUID, duration: Duration = 1.seconds)
fun stopTimeToLive(uuid: UUID)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy