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(Runnable r) {
        Handler h = new Handler(Looper.getMainLooper());
        h.post(r);
    }
}

@@ -181,16 +181,22 @@
 oid run(
+final 
 Runnable
@@ -273,17 +273,258 @@
  h.post(
-r
+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
 );%0A    %7D

handle exception e in runable