Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM: Introduce Subscriber#active attribute #43119

Closed
wants to merge 1 commit into from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 13, 2023

This CL introduces an API, namely subscriber.active for determining
the activity of an existing subscription. The active attribute gets
set to false by the platform synchronously before the Observer's
completion and error handlers are invoked. This has the effect of being
observably false within those handlers, unlike
subscriber.signal.aborted. Please see the lengthy design notes in both
WICG/observable#76 and
WICG/observable#82.

R=masonf@chromium.org

For WPTs:
Co-authored-by: ben@benlesh.com

Bug: 1485981
Reviewed-on: https://chromium-review.googlesource.com/5017505
WPT-Export-Revision: 60d5b3d34ccc1ed64c2a2116b5787586022d6d00

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

This CL introduces an API, namely `subscriber.active` for determining
the activity of an existing subscription. The `active` attribute gets
set to false by the platform synchronously before the Observer's
completion and error handlers are invoked. This has the effect of being
observably `false` _within_ those handlers, unlike
`subscriber.signal.aborted`. Please see the lengthy design notes in both
WICG/observable#76 and
WICG/observable#82.

R=masonf@chromium.org

For WPTs:
Co-authored-by: ben@benlesh.com

Bug: 1485981
Change-Id: I4604a80347ff30ff7be44a131bfdd3999b71252a
@jonathan-j-lee
Copy link
Contributor

Superseded by #43159.

@jonathan-j-lee jonathan-j-lee deleted the chromium-export-cl-5017505 branch November 15, 2023 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants