eu.joaocosta.minart.runtime.MinartApp.scala Maven / Gradle / Ivy
package eu.joaocosta.minart.runtime
/** Entrypoint for Minart applications. */
trait MinartApp[State, Subsystem] {
def createSubsystem: () => Subsystem
def loopRunner: LoopRunner
def appLoop: AppLoop[State, Subsystem]
def main(args: Array[String]): Unit = {
appLoop
.run(
loopRunner,
createSubsystem
)
}
}