AppLoop

eu.joaocosta.minart.runtime.AppLoop
See theAppLoop companion object
trait AppLoop[State, Subsystem]

App loop that keeps an internal state that is passed to every iteration.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def run(runner: LoopRunner, createSubsystems: () => Subsystem): Future[State]

Runs this app loop with a custom loop runner and a set of subsystems.

Runs this app loop with a custom loop runner and a set of subsystems.

Value parameters

createSubsystems

operation to create the subsystems

runner

custom loop runner to use

Attributes

Concrete methods

final def run()(using lr: DefaultBackend[Any, LoopRunner], ss: DefaultBackend[Any, Subsystem]): Future[State]

Runs this app loop using the default loop runner and subsystems.

Runs this app loop using the default loop runner and subsystems.

Attributes