These are chat archives for MetaStack-pl/MetaRx

4th
May 2016
Tim Nieradzik
@tindzk
May 04 2016 08:04
Sorry, I am not sure whether I fully understood your problem. Is this what you're looking for?
val ch = Channel[GameState]()
ch.attach(renderState)

def renderState(st: GameState): Unit = ???

def update(): Unit = {
  ch := GameState(...) // re-calculate game state
}