You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spec wording:
Creating classes registered on the global scope is the responsibility user agent. To allow authors to release resources used by these classes, the user agent must call the dispose() method on the class before destroying.
The only use-case for this is shared cache-objects on the global scope, and allowing code to clean up after themselves. Is it worth putting this in v1?
This is similar life cycle management as attachedCallback/detachedCallback in custom elements. dispose is the isolated worker side callback that would fire for detachedCallback.
E.g.
Spec wording:
Creating classes registered on the global scope is the responsibility user agent. To allow authors to release resources used by these classes, the user agent must call the dispose() method on the class before destroying.
The only use-case for this is shared cache-objects on the global scope, and allowing code to clean up after themselves. Is it worth putting this in v1?
E.g.
The text was updated successfully, but these errors were encountered: