TypeScript Professional — Hard
Key points
- 'Symbol.dispose' method is used for automatic resource cleanup
- 'using' pattern ensures conn.close() is called when block exits
- Provides deterministic cleanup without try-finally blocks
Ready to go further?
Related questions
