mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
refactor: add idleFrames helper to ComfyPage
Addresses review feedback: https://github.com/Comfy-Org/ComfyUI_frontend/pull/10480#discussion_r2990258831 https://github.com/Comfy-Org/ComfyUI_frontend/pull/10480#discussion_r2990264717
This commit is contained in:
@@ -347,6 +347,12 @@ export class ComfyPage {
|
||||
})
|
||||
}
|
||||
|
||||
async idleFrames(count: number) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
await this.nextFrame()
|
||||
}
|
||||
}
|
||||
|
||||
async delay(ms: number) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user