# 05 · using **演示**:`using` 在离开块时自动调用 `[Symbol.dispose]()`,多个资源按后进先出释放。 **运行**:在 `tutorials/typescript` 下执行 `npm run build`,再执行 `npm run serve`,打开 `http://localhost:8080/examples/14-runtime-syntax/05-using/`;开 Console。 **预期控制台输出**: ```text open:first open:second use:first use:second dispose:second dispose:first after ``` **类型检查**:`node node_modules/typescript/bin/tsc -p examples/14-runtime-syntax/05-using/tsconfig.types.json` **注意**:需要运行时支持 `Symbol.dispose`(现代 Node/Chrome 已支持);`await using` 还会等待异步 dispose。