[lint] Enforce @typescript-eslint/no-floating-promises (#3402)

This commit is contained in:
Chenlei Hu
2025-04-11 12:19:22 -04:00
committed by GitHub
parent 59e20964a0
commit dc5d7ea1be
60 changed files with 305 additions and 279 deletions

View File

@@ -17,14 +17,15 @@ export function setupAutoQueueHandler() {
graphHasChanged = true
} else {
graphHasChanged = false
app.queuePrompt(0, queueSettingsStore.batchCount)
// Queue the prompt in the background
void app.queuePrompt(0, queueSettingsStore.batchCount)
internalCount++
}
}
})
queueCountStore.$subscribe(
() => {
async () => {
internalCount = queueCountStore.count
if (!internalCount && !app.lastExecutionError) {
if (
@@ -32,7 +33,7 @@ export function setupAutoQueueHandler() {
(queueSettingsStore.mode === 'change' && graphHasChanged)
) {
graphHasChanged = false
app.queuePrompt(0, queueSettingsStore.batchCount)
await app.queuePrompt(0, queueSettingsStore.batchCount)
}
}
},