File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
library/src/main/java/com/queue/library Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2424import java .lang .reflect .Field ;
2525import java .util .concurrent .Callable ;
2626import java .util .concurrent .Exchanger ;
27+ import java .util .concurrent .Executor ;
2728import java .util .concurrent .TimeUnit ;
2829import java .util .concurrent .TimeoutException ;
2930
3536 * @date 2019/2/15
3637 * @since 1.0.0
3738 */
38- public class Dispatch {
39+ public class Dispatch implements Executor {
3940
4041 private volatile Handler handler = null ;
4142 private static final String TAG = Dispatch .class .getSimpleName ();
@@ -281,4 +282,9 @@ public boolean quit() {
281282 }
282283 return false ;
283284 }
285+
286+ @ Override
287+ public void execute (Runnable command ) {
288+ postRunnable (command );
289+ }
284290}
You can’t perform that action at this time.
0 commit comments