start static method
void
start()
请求立即处理;取消休眠并确保只登记一个帧回调。
例如添加任务时调用 Countman.start();无返回值。
Implementation
static void start() {
_requested = true;
if (_sleepTimer != null) {
_sleepTimer!.cancel();
_sleepTimer = null;
_hasLast = false;
}
if (!_running) {
_generation++;
_running = true;
_hasLast = false;
}
if (!_inLoop && _frameId == null) {
_frameId = SchedulerBinding.instance.scheduleFrameCallback(_loop);
}
}