Skip to content

Conversation

@Josh-Cena
Copy link
Member

@Josh-Cena Josh-Cena commented Feb 7, 2025

Just to show that I know about its existence and it's being worked on. There's no proposed timeline.

This is ready for review. It's a big API, but overall there are the following parts to review:

  1. Look at the guide. It provides an overview of the API which you can use as a roadmap.
  2. Look at using and await using.
  3. Look at DisposableStack and AsyncDisposableStack.
  4. Look at Symbol.dispose and Symbol.asyncDispose.
  5. Look at all other pages where I made sporadic changes.

Fixes #39474

@github-actions github-actions bot added Content:JS JavaScript docs size/xl [PR only] >1000 LoC changed labels Feb 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Preview URLs (43 pages)
External URLs (15)

URL: /en-US/docs/Web/JavaScript/Guide/Resource_management
Title: JavaScript resource management


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncDisposableStack
Title: AsyncDisposableStack


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncDisposableStack/adopt
Title: AsyncDisposableStack.prototype.adopt()


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncDisposableStack/use
Title: AsyncDisposableStack.prototype.use()


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncIterator/Symbol.asyncDispose
Title: AsyncIterator.prototype[Symbol.asyncDispose]()


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/DisposableStack
Title: DisposableStack


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator/Symbol.dispose
Title: Iterator.prototype[Symbol.dispose]()


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/SuppressedError
Title: SuppressedError


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/SuppressedError/SuppressedError
Title: SuppressedError() constructor


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncDispose
Title: Symbol.asyncDispose


URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/dispose
Title: Symbol.dispose


URL: /en-US/docs/Web/JavaScript/Reference/Statements/await_using
Title: await using


URL: /en-US/docs/Web/JavaScript/Reference/Statements/using
Title: using

(comment last updated: 2025-07-29 03:26:45)

@Josh-Cena Josh-Cena marked this pull request as ready for review February 7, 2025 18:27
@Josh-Cena Josh-Cena requested a review from a team as a code owner February 7, 2025 18:27
@Josh-Cena Josh-Cena requested review from sideshowbarker and removed request for a team February 7, 2025 18:27
@Josh-Cena Josh-Cena marked this pull request as draft February 7, 2025 18:27
@Josh-Cena Josh-Cena removed the request for review from sideshowbarker February 7, 2025 18:27
@Josh-Cena Josh-Cena force-pushed the explicit-resource-management branch from 20b3c31 to 89e44e1 Compare February 9, 2025 02:11
@Josh-Cena Josh-Cena force-pushed the explicit-resource-management branch from 15938b0 to 0bb3e9d Compare February 20, 2025 06:46
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

This pull request has merge conflicts that must be resolved before it can be merged.

@Josh-Cena Josh-Cena force-pushed the explicit-resource-management branch from ab99b64 to 4c9ee68 Compare March 12, 2025 23:23
@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Mar 12, 2025
@Josh-Cena Josh-Cena marked this pull request as ready for review March 14, 2025 04:33
@Josh-Cena Josh-Cena requested a review from a team as a code owner March 14, 2025 04:33
@Josh-Cena
Copy link
Member Author

@rbuckton it would be very great if you could provide a technical review of this content. Thank you!

@Josh-Cena Josh-Cena removed the request for review from a team March 26, 2025 00:54
@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Apr 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

This pull request has merge conflicts that must be resolved before it can be merged.

@Josh-Cena Josh-Cena force-pushed the explicit-resource-management branch from 62972a2 to 7e38ac9 Compare April 3, 2025 04:48
@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Apr 3, 2025
@Josh-Cena Josh-Cena requested a review from a team as a code owner May 13, 2025 07:22
@Josh-Cena Josh-Cena requested review from pepelsbey and removed request for a team May 13, 2025 07:22
@Josh-Cena
Copy link
Member Author

Thanks everyone! Really appreciate the reviews. Merging shortly and letting everyone enjoy ERM :)

@Josh-Cena Josh-Cena merged commit b6a36de into mdn:main Jul 29, 2025
8 checks passed
@Josh-Cena Josh-Cena deleted the explicit-resource-management branch July 29, 2025 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xl [PR only] >1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document ECMAScript explicit resource management

6 participants