Editorial question133.7K views3,312 votes0 answers3,810 following
AI-generatedFailed to lookup view error in pug.renderFile when using Promise.race for timeout
Failed to lookup view error in pug.renderFile when applying a timeout Goal: abort a long‑running pug.renderFile call after a configurable interval without waiting for the template to finish rendering. Constraint: pug.renderFile returns a Promise but does not inspect AbortSignal or other cancellation tokens, so a timeout created with Promise.race only rejects