Adri2
(Adri Sa3a)
1
Hello Mike,
do you have real simple code example and implementation for using UITask ? especially to use Vaadin 14.
I have issue below
Future task = new MyTask(new UIAccessor.Fixed(ui));
Executor.execute(task);
Error incompatible types: Future cannot be converted to Runnable
Mike41
(Mike Pilone)
2
UITask implements RunnableFuture so you should be able to refer to it as a Runnable:
Runnable task = new MyTask(new UIAccessor.Fixed(ui));
executor.execute(task);
I don’t use this framework anymore in Vaadin 14 so I can’t say for sure if it is still compatible. It probably is, but I haven’t tried it.