JavaScript Jabber cover image

Things Coming Down the Pipe From TC39 - JSJ 590

JavaScript Jabber

CHAPTER

TypeScript 5.2: Getting Guaranteed Cleanup

This is going to be part of TypeScript 5.2, even though it's not yet supported by your browser. And because you don't need to mess about with all the try and finally and stuff like that, when the variable dies, then that cleanup method will be invoked. So that's where that that way we can get guaranteed cleanup. They're also doing like the ability to specify instead of dispose, which basically just does a wait on the dispose to finish before it proceeds going out of the block.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner