Hi folks, I'm experimenting with figuring out Kafk...
# tornadofx
m
Hi folks, I'm experimenting with figuring out Kafka with TornadoFX. Basically, I want to fetch messages from Kafka (in this silly example I'm using an infinite while loop) and update a UI element with those new messages. I've heard
runAsync
might be the answer, but I'm extremely new to TFX and am almost certainly doing this wrong. Here's the relevant source code: https://github.com/mattmoore/kchat/blob/master/src/main/kotlin/io/mattmoore/kchat/view/MainView.kt#L73-L85