Minimal sample: ``` object ComputeRequest: FXEvent...
# tornadofx
a
Minimal sample:
Copy code
object 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")
    }
}