what-the-bank/sources/io/flutter/embedding/engine/dart/PlatformTaskQueue.java

17 lines
575 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.embedding.engine.dart;
import android.os.Handler;
import android.os.Looper;
import io.flutter.embedding.engine.dart.DartMessenger;
import io.flutter.util.HandlerCompat;
/* loaded from: classes.dex */
public class PlatformTaskQueue implements DartMessenger.DartMessengerTaskQueue {
private final Handler handler = HandlerCompat.createAsyncHandler(Looper.getMainLooper());
@Override // io.flutter.embedding.engine.dart.DartMessenger.DartMessengerTaskQueue
public void dispatch(Runnable runnable) {
this.handler.post(runnable);
}
}