eu.joaocosta.minart.runtime

Type members

Classlikes

trait Loop[S]

Provides abstractions for a loop that can be executed, keeping a state on every iteration.

Provides abstractions for a loop that can be executed, keeping a state on every iteration.

Type parameters:
S

State

sealed trait LoopFrequency

Definition of a loop iteration frequency.

Definition of a loop iteration frequency.

Companion:
object
Companion:
class

Abstraction that allows to run loops at a certain frequency in a platforrm agnostic way.

Abstraction that allows to run loops at a certain frequency in a platforrm agnostic way.

This is useful for interop with backends that do nor provide Thread.sleep or that require that an event loop keeps being consumed.

Companion:
object
object LoopRunner
Companion:
class
sealed trait Platform

Runtime representation of the runtime platform. In general, it is preferable to handle platform-specific code at compile time, but this can be helpful for small changes.

Runtime representation of the runtime platform. In general, it is preferable to handle platform-specific code at compile time, but this can be helpful for small changes.

Companion:
object
object Platform
Companion:
class
trait Resource

Resource that can be loaded

Resource that can be loaded

Companion:
object
object Resource
Companion:
class