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

Concise view

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.

Attributes

createSubsystems

operation to create the subsystems

runner

custom loop runner to use

Concrete methods

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

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

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

Attributes