package com.qiniu.android.utils;

import android.os.Handler;
import android.os.Looper;

/**
 * Created by bailong on 14/10/22.
 */
public final class AsyncRun {
    public static void run(final Runnable r) {
        Handler h = new Handler(Looper.getMainLooper());
        h.post(new Runnable() {
            @Override
            public void run() {
                try {
                    r.run();
                }catch (Exception e){
                    e.printStackTrace();
                }
            }
        });
    }
}

@@ -181,22 +181,16 @@
 oid run(
-final 
 Runnable
@@ -271,250 +271,9 @@
 ost(
-new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                try %7B%0A                    r.run();%0A                %7Dcatch (Exception e)%7B%0A                    e.printStackTrace();%0A                %7D%0A            %7D%0A        %7D
+r
 );%0A 

rollback callback error handle