chore: add notes for a pending design decision

This commit is contained in:
Simon
2026-06-11 20:31:01 +08:00
parent 4828f9f726
commit 4e881f7eb0

View File

@@ -255,6 +255,8 @@ export class PageAgentCore extends EventTarget {
try { try {
console.group(`step: ${step}`) console.group(`step: ${step}`)
// @note It's convenient to treat stepDelay as part of the next step.
// Maybe move it to a dedicated try block for better semantics?
if (step > 0) await waitFor(stepDelay, signal) if (step > 0) await waitFor(stepDelay, signal)
signal.throwIfAborted() signal.throwIfAborted()