@edvin is there a way to get back a value from a runAsync call? In JavaFX psuedo code, I'm trying to do this
Task t = new Task() {
fun call() {
val items = produceItems()
return listOf(items)
}
fun success {
processItems(getValue) // == items
}
}
Thread(t).start()