Closed marvinhagemeister closed 5 months ago
Add support for disposing of Page and Browser instances with the using keyword. It's part of https://github.com/tc39/proposal-explicit-resource-management and it's natively supported in Deno. Allows you to write code like this:
Page
Browser
using
Deno.test("my test", async () => { await using browser = await launch(); await using page = await browser.newPage(); // No need to manually call page.close() and browser.close() })
Add support for disposing of
Page
andBrowser
instances with theusing
keyword. It's part of https://github.com/tc39/proposal-explicit-resource-management and it's natively supported in Deno. Allows you to write code like this: