Code example for Handler

 * Schedulers that have Android specific functionality 
public class AndroidSchedulers { 
    private static final Scheduler MAIN_THREAD_SCHEDULER =
            new HandlerThreadScheduler(new Handler(Looper.getMainLooper()));
    private AndroidSchedulers(){ 
     * {@link Scheduler} which uses the provided {@link Handler} to execute an action 
     * @param handler The handler that will be used when executing the action 
     * @return A handler based scheduler 
    public static Scheduler handlerThread(final Handler handler) {
        return new HandlerThreadScheduler(handler);