Last active
January 5, 2022 20:20
-
-
Save doridori/762d6b813a7395506922421913cc9023 to your computer and use it in GitHub Desktop.
Runtime Centric Thinking Blog post snippts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val commandHandler: CommandHandler | |
var runtimeData: RuntimeData | |
fun RuntimeKernel.receive(action) { | |
//the runtime maintains its own main loop | |
marshallToRuntimeMainThread { | |
val transition = reduce(action, runtimeData) | |
runtimeData = transition.runtimeData | |
//effect system, describes commands and runtimeData state change operations | |
val transitionOperations = describe(transition) | |
perform(transitionOperations) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment