This bug survives code reviews way too often.
Problem
forEach does not await async callbacks.
items.forEach(async item => {
await save(item);
});
This exits immediately. Errors may never surface.
Correct
for (const item of items) {
await save(item);
}
Why it matters
Async flow control must be explicit, not assumed.
