yeah, that's what I am doing here, `it` is result ...
# tornadofx
a
yeah, that's what I am doing here,
it
is result returned on success, or exception in fail.
someData
is just a property containing query parameter (I guess I should assign the value to local variable before
runAsync
to make it thread safe) and that seemed fine until I tried to unit test VM. I am not sure how to wait for result in tests. I can't even do something like this because FX thread is busy and
ui
cannot fire:
Copy code
vm.loadTokens()
while (vm.status.running) { }
assert.........