executeUITask method

void executeUITask()

Implementation

void executeUITask() {
  var start = DateTime.now().millisecondsSinceEpoch;
  var size = _dispatchRunnable.length;
  var count = 0;
  while (count < size) {
    var task = _dispatchRunnable[count];
    try {
      task();
    } catch (e) {
      LogUtils.e(_kTag, "exec render executor error:$e");
    }
    count++;
  }
  _dispatchRunnable.clear();
  LogUtils.dRender(
    "executeUITask: size: ${size}, time: ${(DateTime.now().millisecondsSinceEpoch - start)}ms",
  );
  if (size > 0) {
    doRenderBatch();
  }
}