Back to project page Android-CleanArchitecture.
The source code is released under:
Apache License
If you think the Android project Android-CleanArchitecture listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright (C) 2014 android10.org. All rights reserved. * @author Fernando Cejas (the android10 coder) *//* w w w.j a v a 2 s . c om*/ package com.fernandocejas.android10.sample.domain.executor; /** * Thread abstraction created to change the execution context from any thread to any other thread. * Useful to encapsulate a UI Thread for example, since some job will be done in background, an * implementation of this interface will change context and update the UI. */ public interface PostExecutionThread { /** * Causes the {@link Runnable} to be added to the message queue of the Main UI Thread * of the application. * * @param runnable {@link Runnable} to be executed. */ void post(Runnable runnable); }