exec method

void exec(
  1. Function callback
)

Implementation

void exec(Function callback) {
  if (_microtask == _version) {
    _microtask++;
    scheduleMicrotask(() {
      _version++;
      _microtask = _version;
      callback();
    });
  }
}