- Use
UICallbackto attach toListenableFutures, whenever you want to do work on UI thread - Use
NonUICallbackto attach toListenableFutures, whenever you do not want to do work on UI thread
- Use
UIThreadEventHandlerto attach toEvent, whenever you want to do work on UI thread - Use
BackgroundEventHandlerto delegate work away from UI thread - this is a single threaded executor to ensure sequence
- Use
AsyncTaskwhen you want to do longer running work, like sorting, and need results back on the UI thread