All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
      )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy