Re: [whatwg/webidl] Add disposer and async_disposer (PR #1488)

@jasnell commented on this pull request.



> +<pre highlight="webidl" class="syntax">
+    interface interface_identifier {
+      disposer;
+    };
+</pre>
+
+Prose accompanying the interface must define the <dfn id="dfn-disposal-behavior">disposal behavior</dfn>
+of the interface.
+
+On a given [=interface=], there must exist at most one disposer.
+
+<h4 id="idl-async-disposers">Async Disposers</h4>
+
+When an [=interface=] has an <dfn id="dfn-async-disposer">async_disposer</dfn>, it indicates that objects
+that implement the interface have an implementation of the {{%Symbol.asyncDispose%}} operation.
+Async Disposers can be specified using a <emu-t>async_disposer</emu-t> keyword, which creates a

```suggestion
Async Disposers can be specified using an <emu-t>async_disposer</emu-t> keyword, which creates a
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1488#pullrequestreview-2852042850
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1488/review/2852042850@github.com>

Received on Monday, 19 May 2025 21:34:04 UTC