Three nested try/finally blocks,

or three lines that close in reverse.

what the closing order used to be made of
const folder = await TempFolder.create();
try {
  const db = new Connection();
  try {
    const span = new Span('seed');
    try {
      await seed(db, folder);
    } finally { span.end(); }
  } finally { await db.close(); }
} finally { await folder.remove(); }
what the block does for you instead
await using folder = await TempFolder.create();
await using db = new Connection();
await using span = new Span('seed');

await seed(db, folder);
▲
closed 3rd
closed 2nd
closed 1st
when the body throws the same three run in the same order, and if a close fails too you get one SuppressedError carrying both
TypeScript 5.9.3 · Node v26.1.0 · both columns asserted to produce the same trace
gdhami.net