> 1. What is the recommended way if a background Task wants to update the gui?
> Use EventQueue.invokeLater(Runnable) ?

Call ApplicationContext.queueCallback().

> 2. org.apache.pivot.util.concurrent.Dispatcher spawns a new thread for each 
> task and looks rather unfinished.

You are correct that Dispatcher needs some additional work - we are tracking it 
in this ticket:

https://issues.apache.org/jira/browse/PIVOT-35

However, it shouldn't take much effort to finish it.

> Is there any reason why you don't use java.util.Executors?

IMO, Tasks are a bit easier to work with. However, there is no reason that you 
can't use the java.util.concurrent classes in your application.

Reply via email to