nextUpdate!

This commit is contained in:
shenjack 2024-04-21 21:47:19 +08:00
parent 97459bf29f
commit 5d6da0b0f1
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -9752,7 +9752,6 @@ P._TimerImpl.prototype = {
setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0)
} else {
if (self.setTimeout != null) {
// self.setTimeout(H.convert_dart_closure_to_js_md5(new P.l9(this, b), 0), a)
self.setTimeout(H.convert_dart_closure_to_js_md5(new P._TimerImpl_internalCallback(this, b), 0), 0)
// b.$0() // 草,这下…… 6
} else {
@ -13109,7 +13108,6 @@ HtmlRenderer.inner_render.prototype = {
// this.gfd -> this.fe
if (run_env.from_code) {
this_.b4()
logger.debug("主循环启动")
return
} else {
A.vo(this_.gfd())
@ -13278,6 +13276,7 @@ HtmlRenderer.inner_render.prototype = {
}
},
b4() {
// nextUpdate()
// MARK: 渲染器主"循环"
var async_goto = 0,
async_complete = P._makeAsyncAwaitCompleter(t.z),
@ -13298,8 +13297,9 @@ HtmlRenderer.inner_render.prototype = {
case 5:
this_.Q = async_result
async_goto = 6
// 我们仍然不知道他为啥要在这里 delay 1ms
// return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(1, 0), t.z), $async$b4)
return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(0, 0), t.z), $async$b4)
// return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(0, 0), t.z), $async$b4)
// break
case 6:
this_.db = null
@ -13336,7 +13336,7 @@ HtmlRenderer.inner_render.prototype = {
if (q >= 2000) {
p = this_.Q
p = !(p == null || p.a.length === 0)
} else p = false
} else { p = false }
if (p) {
this_.c5(this_.cy)
this_.cy = false