carlw
05/30/2017, 10:38 AMcarlw
05/30/2017, 10:39 AMcarlw
05/30/2017, 10:39 AMcarlw
05/30/2017, 10:40 AMedvin
05/30/2017, 10:41 AMcarlw
05/30/2017, 11:04 AMcarlw
05/30/2017, 11:04 AMcarlw
05/30/2017, 11:28 AMedvin
05/30/2017, 11:39 AMabhinay
05/30/2017, 12:55 PMerrorProperty
and exceptionProperty
but not about the progressProperty
. Learning something new everyday! 🎉carlw
05/30/2017, 1:01 PMcarlw
05/30/2017, 1:01 PMnimakro
05/30/2017, 1:08 PMcarlw
05/30/2017, 1:10 PMnimakro
05/30/2017, 1:13 PMcarlw
05/30/2017, 1:44 PMcarlw
05/30/2017, 2:04 PMcarlw
05/30/2017, 2:05 PMalexp11223
05/30/2017, 2:05 PMcarlw
05/30/2017, 2:07 PMcarlw
05/30/2017, 2:07 PMalexp11223
05/30/2017, 2:15 PMrunLater
) then there is no issues even with await. The issue is when it is not catched or if it is rethrown (in fail
of runAsync
or runLater
)carlw
05/30/2017, 2:22 PMalexp11223
05/30/2017, 2:25 PMval finishCalled = false
val executor = SomeTaskExecutor(...,
onFail = {
throw it // should fail test
}, onFinish = {
finishCalled = true
})
executor.start()
executor.isFinishedProperty.awaitUntil()
assertTrue(finishCalled)
assert......
SomeTaskExecutor
starts a new thread and calls onFail/Finish
inside runLater
carlw
05/30/2017, 2:36 PMcarlw
05/30/2017, 2:37 PMalexp11223
05/30/2017, 2:45 PMcarlw
05/30/2017, 2:59 PMalexp11223
05/30/2017, 3:00 PM