arxenix
09/25/2018, 10:33 PMobject ComputeRequest: FXEvent(EventBus.RunOn.BackgroundThread)
fun heavyComputation() {
println("not really")
}
class MainView : View("Hello TornadoFX") {
init {
subscribe<ComputeRequest> {
heavyComputation()
}
fire(ComputeRequest)
}
override val root = hbox {
label("Hello World")
}
}