1 min readAug 27, 2019
Create the EventEmitter on the UI thread, emit the event on the UI thread. Technically in LiveData this is what postValue
does — posts to the UI thread using a Handler before calling setValue
, but I didn’t want a hard internal reference to android.os.Handler
because it makes testability trickier (which is why AAC has the InstantTaskExecutorRule
).