- Use
UICallback
to attach toListenableFuture
s, whenever you want to do work on UI thread - Use
NonUICallback
to attach toListenableFuture
s, whenever you do not want to do work on UI thread
- Use
UIThreadEventHandler
to attach toEvent
, whenever you want to do work on UI thread - Use
BackgroundEventHandler
to delegate work away from UI thread - this is a single threaded executor to ensure sequence
- Use
AsyncTask
when you want to do longer running work, like sorting, and need results back on the UI thread